g:select tag in grails

Discussion in 'Java' started by ma_kiem, Jul 20, 2011.

  1. ma_kiem

    ma_kiem

    Joined:
    Jul 5, 2011
    Messages:
    2
    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:
    ma_kiem, Jul 20, 2011
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. shruds
    Replies:
    1
    Views:
    779
    John C. Bollinger
    Jan 27, 2006
  2. markspace
    Replies:
    11
    Views:
    1,721
  3. Roedy Green
    Replies:
    0
    Views:
    475
    Roedy Green
    Sep 24, 2009
  4. Chris Thiel

    Rails vs JRuby/Rails vs Grails

    Chris Thiel, Apr 11, 2009, in forum: Ruby
    Replies:
    1
    Views:
    163
    Glen Holcomb
    Apr 13, 2009
  5. SkillsMatter Mike

    Groovy & Grails eXchange 2012

    SkillsMatter Mike, Nov 7, 2012, in forum: Java
    Replies:
    0
    Views:
    244
    SkillsMatter Mike
    Nov 7, 2012
Loading...

Share This Page