开发者

JSF: how to rendered=#{bean.isRendered} multiple components at one time

开发者 https://www.devze.com 2023-01-14 20:26 出处:网络
I tried this but does not work: <f:verbatim rendered=\"#{bean.isRendered}\"> <h:selectOneMenu>

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

精彩评论

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