私は次のコードを持っています。私はradioButtonとラベルをレンダリングしたいと思います。 selectOneRadioとselectItemによってレンダリングされたレイアウトのために、私は入力radioButtonsのためにプレーンなHTMLを使うことに決めました。onのh:outputLabelの属性に問題があります。repeat:
<h:panelGrid columns="6">
<ui:repeat value="#{myBean.list}" var="item">
<input id="#{item.innerList[0].id}" type="radio" name="radioItem" value="#{item.innerList[0].id}" />
<h:outputLabel for="#{item.innerList[0].id}" value="#{item.label}" />
</ui:repeat>
</h:panelGrid>
彼らはそれはのようなHTML内の属性をレンダリングoutputLabel使用するためのラベルを割り当てるしようとすると:
j_idt94:0:theidiassigned
このコードを含むタグ形式でprependIdフラグドキュメントには、outputLabelの他のタグを含む属性にこのようなフラグはありません。
' 'の問題はどうなりますか? Tomahawk ''の解決策や回避策は間違いありません。http://stackoverflow.com/questions/6033955/jsf-more-customizable-selectmanycheckbox-and-selectoneradio/6034020#6034020も参照してください。 –
BalusC