Factorizing the "rendered" attribute over several JSF elements
Given the following JSF fragment:
<h:outputText ... rendered="#{bean.r} />
<h:outputText ... rendered="#{bean.r} />
<h:outputText ... rendered="#{bean.r} />
How can I factorize to someth开发者_运维问答ing that would look like:
<h:someKindOfGroupOrSomething rendered="#{bean.r}>
<h:outputText ... />
<h:outputText ... />
<h:outputText ... />
</h:someKindOfGroupOrSomething>
Create a PanelGroup - JSF
If you use MyFaces Trinidad you can use Group
精彩评论