grails countrySelect tag - default value
The countrySelect tag says it has the following attribute:
- default (optional) - The ISO code of the default country to display if value is not set
I removed the value attribute altogether, and still can't get it to display "United States" as the default selection when I do:
<g:countrySelect name="ship.country" default="usa" />
or
<g:countrySelect name="ship.country" default="United St开发者_JAVA百科ates" />
What am I doing wrong .. what else should I try?
Thanks
<g:countrySelect name="ship.country" default="usa" />
Must work! i just tested in my grails 1.3.7 ! and it worked perfectly!
What is the version of grails that you re using?
精彩评论