[ 
http://www.stripesframework.org/jira/browse/STS-49?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter closed STS-49.
-------------------------


> Options-collection assumes collection of beans
> ----------------------------------------------
>
>                 Key: STS-49
>                 URL: http://www.stripesframework.org/jira/browse/STS-49
>             Project: Stripes
>          Issue Type: Bug
>          Components: Tag Library
>            Reporter: Greg Hinkle
>            Assignee: Tim Fennell
>             Fix For: Release 1.0
>
>
> The options-collection tag requires one to supply a label and value attribute 
> that is considered to be a property of the bean in the collection. A common 
> thing, though, is to have a collection of strings or perhaps numbers that are 
> displayed as is in the select list and are meant to be the label and the 
> value.
> I've made a local change to allow for this by setting label and value to be 
> optional attributes and when they're null, using the collection item itself. 
> (Useful for my list-of-strings selection) Code below:
>                 Object label = null;
>                 if (label != null)
>                     label = OgnlUtil.getValue(labelProperty, item);
>                 else
>                     label = item;
>                 Object value = null;
>                 if (value != null)
>                     value = OgnlUtil.getValue(valueProperty, item);
>                 else
>                     value = item;

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to