Class CompositeFaceletHandler

  • All Implemented Interfaces:
    FaceletHandler


    public final class CompositeFaceletHandler
    extends java.lang.Object
    implements FaceletHandler

    A FaceletHandler that is derived of 1 or more, inner FaceletHandlers. This class would be found if the next FaceletHandler is structually, a body with multiple child elements as defined in XML. This class enables the Facelet runtime to traverse the tree of FaceletHandler instances built by the Facelets compiler.

    • Constructor Detail

      • CompositeFaceletHandler

        public CompositeFaceletHandler​(FaceletHandler[] children)
    • Method Detail

      • apply

        public void apply​(FaceletContext ctx,
                          UIComponent parent)
                   throws java.io.IOException

        Calls apply on any child handlers.

        Specified by:
        apply in interface FaceletHandler
        Parameters:
        ctx - the FaceletContext for this view execution
        parent - the parent UIComponent of the component represented by this element instance.
        Throws:
        java.io.IOException - if unable to load relativePath
        Since:
        2.0
      • getHandlers

        public FaceletHandler[] getHandlers​()

        Returns the array of child handlers contained by this handler.

        Returns:
        Returns the array of child handlers contained by this handler.