Question

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

Was it helpful?

Solution

<g:select from="${(0..59) + [ "All", "/5", "/10"]}" ... />

how about this?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top