Hi,
I am trying to use an option-collection for a list, and made a pair of
examples to see if I got it to work as intended, but didn't work as spected.
In an option collection, you can specify the value and the label, which
will be used to create the <option value="value">label</option>. So if you
want to use a field of each item, is good, but if you try to let it be used
as label, by not specifying it:
<stripes:options-collection collection="${actionBean.seasons}"/>
In my case will output:
> <select name="event.season">
> <option value="2011 - Verano">org.lmb97.data.Seasons@468c4a4f
> </option>
> </select>
Which is nearly correct, with the exception that the value and the label
should be the same.
Neither if you specify only one, and let the other be used:
<stripes:options-collection collection="${actionBean.seasons}" value="id" />
Which outputs:
> <select name="event.season">
> <option selected="selected" value="1">org.lmb97.data.Seasons@36088e42
> </option>
> </select>
Isn't neither what it should be, as value should be using the Formatter and
not toString().
Was this a known bug? Has it been solved or something?
Cheers,
Javier Domingo
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users