开发者

grails countrySelect tag - default value

开发者 https://www.devze.com 2023-04-03 16:26 出处:网络
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

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消