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

public Class PassThroughElementComponentHandler

extends ComponentHandler
Class Inheritance
Imports
java.util.Map, com.sun.faces.util.Util, jakarta.faces.FacesException, jakarta.faces.component.UIComponent, jakarta.faces.render.Renderer, jakarta.faces.view.facelets.ComponentConfig, .ComponentHandler, .FaceletContext, .TagAttribute, .TagException

Field Summary

Modifier and TypeField and Description
private final TagAttribute

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public UIComponent
createComponent(FaceletContext
the FaceletContext for this view execution
ctx
)

Overrides jakarta.faces.view.facelets.ComponentHandler.createComponent.

Subclasses that wish to take over the task of instantiating the UIComponent instance corresponding to this tag handler my override this method to do so.

protected final TagAttribute
public void
onComponentCreated(FaceletContext
the FaceletContext for this view execution
ctx
,
UIComponent
the UIComponent that has just been created.
c
,
UIComponent
the parent UIComponent of the component represented by this element instance.
parent
)

Overrides jakarta.faces.view.facelets.ComponentHandler.onComponentCreated.

This method is guaranteed to be called after the component has been created but before it has been populated with children.

Inherited from jakarta.faces.view.facelets.ComponentHandler:
getComponentConfiggetTagHandlerDelegateisNewonComponentPopulated

Field Detail

elementNameback to summary
private final TagAttribute elementName

Constructor Detail

PassThroughElementComponentHandlerback to summary
public PassThroughElementComponentHandler(ComponentConfig config)

Method Detail

createComponentback to summary
public UIComponent createComponent(FaceletContext ctx)

Overrides jakarta.faces.view.facelets.ComponentHandler.createComponent.

Doc from jakarta.faces.view.facelets.ComponentHandler.createComponent.

Subclasses that wish to take over the task of instantiating the UIComponent instance corresponding to this tag handler my override this method to do so. A null return from this method will cause the TagHandlerDelegate for instance to create the component instead.

Parameters
ctx:FaceletContext

the FaceletContext for this view execution

Returns:UIComponent

the newly created UIComponent

Annotations
@Override
getRequiredPassthroughAttributeback to summary
protected final TagAttribute getRequiredPassthroughAttribute(String localName) throws TagException
onComponentCreatedback to summary
public void onComponentCreated(FaceletContext ctx, UIComponent c, UIComponent parent)

Overrides jakarta.faces.view.facelets.ComponentHandler.onComponentCreated.

Doc from jakarta.faces.view.facelets.ComponentHandler.onComponentCreated.

This method is guaranteed to be called after the component has been created but before it has been populated with children.

Parameters
ctx:FaceletContext

the FaceletContext for this view execution

c:UIComponent

the UIComponent that has just been created.

parent:UIComponent

the parent UIComponent of the component represented by this element instance.

Annotations
@Override