JSF: how to rendered=#{bean.isRendered} multiple components at one time
I tried this but does not work:
<f:verbatim rendered="#{bean.isRendered}">
<h:selectOneMenu>
...
</h:selectOneMenu>
<h:selectOneMenu>
...
</h:selectOneMenu>
<h:selectOneMenu>
...
</h:selectOneMenu>
</f:verbatim>
I can put the rendered
attributes 开发者_StackOverflow中文版inside each <h:selectOneMenu>
, ohh well :D it would be easier if I group them like above
<h:panelGroup rendered="#{bean.someBoolean}">
<!-- multiple elements here -->
</h:panelGroup>
精彩评论