javax.faces.view.facelets

## Class Facelet

- java.lang.Object
- - javax.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.

  Author:
    Jacob Hookom

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Facelet()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | `apply(FacesContext facesContext, UIComponent parent)` The passed UIComponent parent will be populated/restored in accordance with the Facelets chapter in the spec prose document.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Facelet

          public Facelet()

  - ### Method Detail

    - #### apply

          public 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`
        `FacesException`
        `FaceletException`
        `ELException`

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.