If I want to show the id's of items of some list, I write:
<stripes:options-collection collection="${itemsList}" value="id"/>
But if I got a list of strings, how can I show them? What should I put into value
?
<stripes:options-collection collection="${stringsList}" ??????/>
The answer is simple - I shouldn't use any
value
. So, the line in stripes should look as:This way the items of the list will be shown directly.