Top Fields Constructors Methods
com.sun.faces.facelets.tag.ui

public final Class CompositionHandler

extends TagHandlerImpl
implements TemplateClient
Class Inheritance
All Implemented Interfaces
com.sun.faces.facelets.TemplateClient
Imports
java.io.IOException, java.util.ArrayList, .HashMap, .Iterator, .List, .Map, java.util.logging.Level, .Logger, com.sun.faces.facelets.FaceletContextImplBase, .TemplateClient, com.sun.faces.facelets.el.VariableMapperWrapper, com.sun.faces.facelets.tag.TagHandlerImpl, com.sun.faces.util.FacesLogger, jakarta.el.VariableMapper, jakarta.faces.component.UIComponent, jakarta.faces.context.FacesContext, jakarta.faces.view.facelets.FaceletContext, .TagAttribute, .TagAttributeException, .TagConfig

Author
Jacob Hookom

Field Summary

Modifier and TypeField and Description
protected final Map<K, V>
private static final Logger
public static final String
protected final ParamHandler[]
protected final TagAttribute

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
apply(FaceletContext
the current FaceletContext instance for this execution
ctxObj
,
UIComponent
the parent UIComponent to operate upon
parent
)

Implements jakarta.faces.view.facelets.FaceletHandler.apply.

Process changes on a particular UIComponent

public boolean
apply(FaceletContext
the FaceletContext of your instance, not the templates'
ctx
,
UIComponent
current UIComponent instance to be applied
parent
,
String
the String name or null if the whole body should be included
name
)

Implements com.sun.faces.facelets.TemplateClient.apply.

This contract is much like the normal FaceletHandler.apply method, but it takes in an optional String name which tells this instance what fragment/definition it's looking for.

Inherited from com.sun.faces.facelets.tag.TagHandlerImpl:
findNextByTypefindNextByType

Field Detail

handlersback to summary
protected final Map<K, V> handlers
logback to summary
private static final Logger log
Nameback to summary
public static final String Name
paramsback to summary
protected final ParamHandler[] params
templateback to summary
protected final TagAttribute template

Constructor Detail

CompositionHandlerback to summary
public CompositionHandler(TagConfig config)

Method Detail

applyback to summary
public void apply(FaceletContext ctxObj, UIComponent parent) throws IOException

Implements jakarta.faces.view.facelets.FaceletHandler.apply.

Doc from jakarta.faces.view.facelets.FaceletHandler.apply.

Process changes on a particular UIComponent

Parameters
ctxObj:FaceletContext

the current FaceletContext instance for this execution

parent:UIComponent

the parent UIComponent to operate upon

Annotations
@Override
Exceptions
IOException:
if unable to load relativePath
applyback to summary
public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException

Implements com.sun.faces.facelets.TemplateClient.apply.

Doc from com.sun.faces.facelets.TemplateClient.apply.

This contract is much like the normal FaceletHandler.apply method, but it takes in an optional String name which tells this instance what fragment/definition it's looking for. If you are a match, apply your logic to the passed UIComponent and return true, otherwise do nothing and return false.

Parameters
ctx:FaceletContext

the FaceletContext of your instance, not the templates'

parent:UIComponent

current UIComponent instance to be applied

name:String

the String name or null if the whole body should be included

Returns:boolean

true if this client matched/applied the definition for the passed name

Annotations
@Override
Exceptions
IOException:
when an I/O exception occurs