【发布时间】:2011-07-05 11:30:05
【问题描述】:
我正在使用http://myfaces.apache.org/core20/index.html 和http://myfaces.apache.org/tomahawk-project/tomahawk20/tagdoc/t_selectOneRadio.html。
我在我的 jsf 页面中使用了 tomahawk <t:selectOneRadio>。
<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" />
我无法查看单选按钮,其中相同的代码在 JSF 1.1 中与 jboss6 中的等效 Tomahawk 库正常工作。
【问题讨论】:
-
非常感谢任何想法
-
我认为问题出在 itemLabel="" 上。尝试在那里添加一些东西以查看它的工作原理,但理论上代码应该可以工作。