Faces Core
Tag metadata
Declare the metadata facet for this view. This must be a child of the <f:view>
. This tag must reside within the top level XHTML file for the given viewId, or in a template client, but not in a template. The implementation must insure that the direct child of the facet is a UIPanel
, even if there is only one child of the facet. The implementation must set the id of the UIPanel
to be the value of the UIViewRoot.METADATA_FACET_NAME
symbolic constant.
The implementation must allow templating for this element according to the following pattern.
template client XHTML view, view01.xhtml
<ui:composition template="template.xhtml">
<ui:define name="metadata">
<f:metadata>
<f:viewParam name="id"/>
</f:metadata>
</ui:define>
<ui:define name="content">
<h1>The big news stories of the day</h1>
</ui:define>
</ui:composition>
Note line 4. The page author must ensure that the <f:metadata>
element does not appear on a template or included page. It must reside on the root page that corresponds to the viewId.
The template page, template.xhtml
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xml:lang="en" lang="en">
<body>
<f:view>
<ui:insert name="metadata"/>
<div id="container">
<ui:insert name="content"/>
</div>
</f:view>
</body>
</html>
The page author is not required to use templating, but if they do, it must be done as shown above, (or with <ui:include>
in a similar manner).
Tag Information |
Tag Class | javax.faces.webapp.FacetTag |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
Attributes |
No Attributes Defined. |
Variables |
No Variables Defined. |
Output Generated by
Tag Library Documentation Generator.