BigJ
BigJ

Reputation: 2032

JSF facelets - How do I put a template <ui:insert> tag into a panel header value?

For example this panel:

<p:panel header="Template insert field here...">
</p:panel>

This doesnt work:

<p:panel header="<ui:insert name="content">Content here</ui:insert>">
</p:panel>

Upvotes: 1

Views: 706

Answers (1)

BalusC
BalusC

Reputation: 1109635

Use <f:facet> instead.

<p:panel>
    <f:facet name="header">
        <ui:insert name="content">Content here</ui:insert>
    </f:facet>
</p:panel>

Upvotes: 2

Related Questions