g:select tag in grails

Joined
Jul 5, 2011
Messages
2
Reaction score
0
In html:
<select>
<option value="1">Yes</option>
<option value="0">No</option>
</select>

In grails, I write:
<g:select name="gender" from="${['0': 'no','1': 'yes']}" value="${studenInstance?.gender}" />
but i dont display ''no', 'yes' in browser web. How do i do?:bored::bored::bored::bored::bored::bored:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top