admin管理员组文章数量:1304188
Using tapestry 5.6.2
I want to do something like this
<t:loop t:source="orders" t:value="order">
<t:RadioGroup name="shipping">
<t:loop t:source="order.shippingOptions" value="shippingOption">
<t:Radio value="shippingOption"/>
<t:Label for="????">${shippingOption.description}<strong>${shippingOption.cost}
</strong></t:Label>
</t:loop>
</t:RadioGroup>
</t:loop>
The problem is that i can't anticipate which id is the Radio going to take and put it in the "for" parameter of the label
I tried making something like <t:radio id="${shippingOptionId}"...
and implement a "public String getShippingOptionId()" on the java side but that parameter is ignored
Edit: I think i got the solution...
whit this... <t:Radio id="shippingOption" value="shippingOption"/> <t:Label for="shippingOption">
and a valueEncoder i managed to make it work
本文标签: java(solved) Tapestry RadioGroup with radio button in loopStack Overflow
版权声明:本文标题:java - (solved) Tapestry RadioGroup with radio button in loop - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741766848a2396513.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论