Reputation: 1229
The "select" form component in grails can have the form:
<g:select name="user.age" from="${0..59}" value="${age}" noSelection="['':'-All-']"/>
But if I need to add other options aside from the numbers, how would I do that (example options are: 0..59, All, "/5", "/10", etc,...)
Thanks
Upvotes: 0
Views: 1837
Reputation: 6539
<g:select from="${(0..59) + [ "All", "/5", "/10"]}" ... />
how about this?
Upvotes: 4