Name
<f:facet>
Synopsis
This action adds the component
represented by the JSF action in its body as a facet with the
specified name to the component represented by closest JSF component
parent action element. To use a number of components as a facet,
create them as children of a simple container component, e.g., by
nesting the corresponding HTML library component actions within the
body of an <h:panelGroup>
action element.
Syntax
<f:facet name="facetName">
JSF component action elements
</f:facet>
Attributes
Attribute name |
Java type |
EL expression type |
Description |
name |
String |
None |
The facet name. |
Example
<h:dataTable value="#{reportHandler.reports}" var="report"> <f:facet name="header"> <h:outputText value="Reports" /> </f:facet> ... </h:dataTable>
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.