複合コンポーネントには、このコードがあります
<composite:interface>
<composite:attribute name="bean" required="true"/>
<composite:attribute name="selectable" required="true"/>
</composite:interface>
<composite:implementation>
............
<h:panelGrid rendered="#{cc.attrs.selectable}">
<h:column styleClass="colonneCheckbox">
<center><h:selectBooleanCheckbox value="#{liste.selected}" /></center>
</h:column>
</h:panelGrid>
.............
</composite:implementation>
</html>
そして私はそれをこのように呼びます:
<ccc:resultatRechercheClient bean="#{rechercheClient}" selectable="true"/>
ただし、ペイングリッドはレンダリングされません。これをアクティブにする唯一の方法は、Bean内にブール変数を作成し、それをtrueに設定してから、パラメーターとして渡すことです。
このようなもの :
<ccc:resultatRechercheClient bean="#{rechercheClient}" selectable="#{rechercheClient.render}"/>
ありがとう