コンポジットコンポーネントで自分自身のselectManyCheckboxを作成しようとしています。しかし、私自身のselectItemコンポーネントを使用しようとすると、アイテムはレンダリングされません。f:コンポジットコンポーネント内のselectItem
selectItem.xhtml:
<cc:implementation>
<f:selectItem rendered="true" id="#{cc.attrs.id}"
itemDescription="#{cc.attrs.itemDescription}"
itemDisabled="#{cc.attrs.itemDisabled}"
itemLabel="#{cc.attrs.itemLabel}" itemValue="#{cc.attrs.itemValue}"
value="#{cc.attrs.value}">
</f:selectItem>
</cc:implementation>
selectManyCheckbox.xhtml:
<!--Some other stuff like label -->
<h:selectManyCheckbox styleClass="#{cc.attrs.styleClass}"
id="#{cc.attrs.id}_checkbox" value="#{cc.attrs.value}"
layout="pageDirection">
<cc:insertChildren />
</h:selectManyCheckbox>
私はそれが動作しない
<mycomps:selectManyCheckbox id="abc" labelString="Example">
<mycomps:selectItem itemValue="1" itemLabel="One" />
</mycomps:selectManyCheckbox>
を使用しています。しかし、私が使用するとき
<mycomps:selectManyCheckbox id="abc" labelString="Example">
<f:selectItem itemValue="1" itemLabel="One" />
</mycomps:selectManyCheckbox>
それがあります!誰でも私はこの問題を解決する方法アイデア?
ありがとうございました!
「」1:1をそのような複合コンポーネントでラップする点はありません。ここで正確に何が強化されましたか? –
BalusC
もう1つのコードを残しました – Zinnsoldat