Package jakarta.faces.view.facelets
Class CompositeFaceletHandler
- java.lang.Object
-
- jakarta.faces.view.facelets.CompositeFaceletHandler
-
- All Implemented Interfaces:
FaceletHandler
public final class CompositeFaceletHandler extends Object implements FaceletHandler
A FaceletHandler that is derived of 1 or more, inner FaceletHandlers. This class would be found if the next FaceletHandler is structurally, 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 Summary
Constructors Constructor Description CompositeFaceletHandler(FaceletHandler[] handlers)
Creates a new FaceletHandler out of the given inner FaceletHandlers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(FaceletContext ctx, UIComponent parent)
Calls apply on any child handlers.FaceletHandler[]
getHandlers()
Returns the array of child handlers contained by this handler.
-
-
-
Constructor Detail
-
CompositeFaceletHandler
public CompositeFaceletHandler(FaceletHandler[] handlers)
Creates a new FaceletHandler out of the given inner FaceletHandlers.- Parameters:
handlers
- the inner FaceletHandlers.
-
-
Method Detail
-
apply
public void apply(FaceletContext ctx, UIComponent parent) throws IOException
Calls apply on any child handlers.
- Specified by:
apply
in interfaceFaceletHandler
- Parameters:
ctx
- theFaceletContext
for this view executionparent
- the parentUIComponent
of the component represented by this element instance.- Throws:
IOException
- if unable to loadrelativePath
- 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.
-
-