[Groovy] select 标签

artillery007 2008-08-01
<g:select id="statType" name="statType" from="${['errorcounts':message(code:"question.stattype1"),'selectcounts':message(code:"question.stattype2")]}" optionKey="key" optionValue="value" noSelection="['':'']"></g:select>


这样写怎么什么都显示不出来呢????请大家帮忙下啊  急~~
casephoen 2008-08-01
hash里面key名称都不同,用optionKey/Value肯定不行了
用from=... keys=...吧
Global site tag (gtag.js) - Google Analytics