Package jakarta.faces.view.facelets
Class Facelet
- java.lang.Object
- 
- jakarta.faces.view.facelets.Facelet
 
- 
 public abstract class Facelet extends Object 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 JSF.
- 
- 
Constructor SummaryConstructors Constructor Description Facelet()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidapply(FacesContext facesContext, UIComponent parent)The passed UIComponent parent will be populated/restored in accordance with the Facelets chapter in the spec prose document.voidapplyMetadata(FacesContext facesContext, UIComponent parent)The passed UIComponent parent will be populated/restored in accordance with the Facelets chapter in the spec prose document with only the meta data as per thef:metadatatag.
 
- 
- 
- 
Method Detail- 
applyMetadatapublic void applyMetadata(FacesContext facesContext, UIComponent parent) throws IOException The passed UIComponent parent will be populated/restored in accordance with the Facelets chapter in the spec prose 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 this- Facelet
- FaceletException- if unable to parse the markup loaded in applying this- Facelet
- FacesException- if unable to create child- UIComponentinstances
- jakarta.el.ELException- if any of the expressions in the markup loaded during the apply fail
 
 - 
applypublic abstract void apply(FacesContext facesContext, UIComponent parent) throws IOException The passed UIComponent parent will be populated/restored in accordance with the Facelets chapter in the spec prose 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 this- Facelet
- FaceletException- if unable to parse the markup loaded in applying this- Facelet
- FacesException- if unable to create child- UIComponentinstances
- jakarta.el.ELException- if any of the expressions in the markup loaded during the apply fail
 
 
- 
 
-