开发者

t:selectOneRadio is not working in tomahawk version 2.0

I am using http://myfaces.apache.org/core20/index.html and http://myfaces.apache.org/tomahawk-project/tomahawk20/tagdoc/t_selectOneRadio.html.

I have used tomahawk <t:selectOneRadio> in my jsf page.

<t:selectOneRadio id="myScript" value="#{bean.myScript}" layout="spread">
    <f:selectItem itemLabel="" itemValue="Every" />
    <f:selectItem itemLabel="" itemValue="Every weekday" />
</t:selectOneRadio>

<t:radio for="myScript" index="0" />
<t:radio for="myScript" index="1" />

I am not able to view the radio buttons, where-in开发者_如何学Go the same code worked properly in JSF 1.1 with the equivalent Tomahawk libraries in jboss6.


You should put what you want to show to the user in the itemLabel attribute, and a identifier in the itemValue

Like this

<t:selectOneRadio id="myScript" value="#{bean.myScript}" layout="spread">
    <f:selectItem itemLabel="Every" itemValue="every" />
    <f:selectItem itemLabel="Every weekday" itemValue="everyWeekday" />
</t:selectOneRadio>

<t:radio for="myScript" index="0" />
<t:radio for="myScript" index="1" />

Regards

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜