Radio buttons in different parts of the page

£可爱£侵袭症+ 提交于 2019-12-02 02:08:16

I have no utter idea what IceFaces provides, but Tomahawk has a <t:selectOneRadio> control which supports an extra layout attribute with value of spread which allows you to place the individual radio buttons everywhere you want in the markup using <t:radio>.

E.g.

<t:selectOneRadio id="foo" value="#{bean.foo}" layout="spread">
    <f:selectItems value="#{bean.foos}" />
</t:selectOneRadio>
...
<t:radio for="foo" index="0" />
...
<t:radio for="foo" index="1" />
...
<t:radio for="foo" index="2" />
...

Update as turns out, IceFaces has cloned this Tomahawk-invented feature since version 1.7. So just substitute t: with ice: in above example and it'll work as good.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!