Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   g:select tag in grails (http://www.velocityreviews.com/forums/t751723-g-select-tag-in-grails.html)

ma_kiem 07-20-2011 03:21 AM

g:select tag in grails
 
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:


All times are GMT. The time now is 08:21 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.