Include and exclude attributes for options-enumeration tag
----------------------------------------------------------

                 Key: STS-758
                 URL: http://www.stripesframework.org/jira/browse/STS-758
             Project: Stripes
          Issue Type: Improvement
          Components: Tag Library
            Reporter: Ken Koster


I often need to output an options-enumeration list with only a subset of the 
options. This was so common on the project I have been working on that I added 
"include" and "exclude" attributes to the InputOptionsEnumerationTag. Both 
attributes take a comma-delimited list of enum names that will either be the 
only options output (the "include" case) or the only options out of the 
enumeration not output (the "exclude" case).

This is a much simpler version of the feature request that was included with 
STS-300.

This enhancement is unit tested and has been working well in production for the 
last 6 weeks or so. I am happy to submit a patch for it if the community thinks 
it would be generally useful.

Here is an example of the tag with the new attribute:
<stripes:options-enumeration enum="com.diio.BatchingType" 
exclude="PURCHASE_DATE,TRAVEL_DATE"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to