在复合组件中,我有这段代码
<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"/>
但是没有渲染panegrid,是因为激活它的唯一方法是在bean内部创建一个布尔变量,将其设置为true,然后将其作为参数传递?
像这样的东西:
<ccc:resultatRechercheClient bean="#{rechercheClient}" selectable="#{rechercheClient.render}"/>
谢谢