Package jakarta.faces.view.facelets
Class Facelet
java.lang.Object
jakarta.faces.view.facelets.Facelet
The parent or root object in a FaceletHandler composition. The Facelet will take care of populating the passed UIComponent parent in relation to the create/restore lifecycle of Jakarta Server Faces.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidapply(FacesContext facesContext, UIComponent parent) The passed UIComponent parent will be populated/restored in accordance with the section 10.2.1 "Specification of the ViewDeclarationLanguage Implementation for Facelets for Jakarta Faces" in the Jakarta Faces Specification Document.voidapplyMetadata(FacesContext facesContext, UIComponent parent) The passed UIComponent parent will be populated/restored in accordance with the section 10.2.1 "Specification of the ViewDeclarationLanguage Implementation for Facelets for Jakarta Faces" in the Jakarta Faces Specification Document with only the meta data as per thef:metadatatag.
-
Constructor Details
-
Facelet
public Facelet()
-
-
Method Details
-
applyMetadata
The passed UIComponent parent will be populated/restored in accordance with the section 10.2.1 "Specification of the ViewDeclarationLanguage Implementation for Facelets for Jakarta Faces" in the Jakarta Faces Specification Document with only the meta data as per the
f:metadatatag.- Parameters:
facesContext- The current FacesContext (Should be the same as FacesContext.getInstance())parent- The UIComponent to populate in a compositional fashion. In most cases a Facelet will be base a UIViewRoot.- Throws:
IOException- if unable to load a file necessary to apply thisFaceletFaceletException- if unable to parse the markup loaded in applying thisFaceletFacesException- if unable to create childUIComponentinstancesELException- if any of the expressions in the markup loaded during the apply fail
-
apply
The passed UIComponent parent will be populated/restored in accordance with the section 10.2.1 "Specification of the ViewDeclarationLanguage Implementation for Facelets for Jakarta Faces" in the Jakarta Faces Specification Document.
- Parameters:
facesContext- The current FacesContext (Should be the same as FacesContext.getInstance())parent- The UIComponent to populate in a compositional fashion. In most cases a Facelet will be base a UIViewRoot.- Throws:
IOException- if unable to load a file necessary to apply thisFaceletFaceletException- if unable to parse the markup loaded in applying thisFaceletFacesException- if unable to create childUIComponentinstancesELException- if any of the expressions in the markup loaded during the apply fail
-