0

複合コンポーネントを使用して独自のselectManyCheckboxを作成しようとしています。しかし、独自の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>

します!誰かが私がこの問題をどのように解決できるか考えていますか?

ありがとう!

4

1 に答える 1