g:countrySelect with full country name as value

Posted by Sheldon on Stack Overflow See other posts from Stack Overflow or by Sheldon
Published on 2010-05-26T12:07:18Z Indexed on 2010/05/26 12:11 UTC
Read the original article Hit count: 208

Filed under:
|

I want to store the exact country name using g:countrySelect. Example Germany instead of DEU. It is the value in the drop down menu. The drop down text is Germany but when it saves it to the database it changes back to the country code. Sorry if I am somewhat naive but I have been searching for almost 3 hours for solutions and it isn't well documented at the grails website. I could opt for any alternative even ajax. Just to have an easy way to display a list of countries and will be able to store the REAL NAME of the country NOT country code. Thank you!

© Stack Overflow or respective owner

Related posts about grails

Related posts about groovy