开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜