开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜