Package com.sun.faces.facelets.tag.faces
Class ComponentTagHandlerDelegateImpl
java.lang.Object
jakarta.faces.view.facelets.TagHandlerDelegate
com.sun.faces.facelets.tag.faces.ComponentTagHandlerDelegateImpl
- Direct Known Subclasses:
ComponentResourceDelegate
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddComponentToView(FaceletContext ctx, UIComponent parent, UIComponent c, boolean componentFound) voidapply(FaceletContext ctx, UIComponent parent) Method handles UIComponent tree creation in accordance with the Faces 1.2 spec.protected voidassignUniqueId(FaceletContext ctx, UIComponent parent, String id, UIComponent c) createMetaRuleset(Class type) Return aMetaRulesetparticular to this kind of tag handler.protected voiddoExistingComponentActions(FaceletContext ctx, String id, UIComponent c) protected voiddoNewComponentActions(FaceletContext ctx, String id, UIComponent c) protected voiddoOrphanedChildCleanup(FaceletContext ctx, UIComponent parent, UIComponent c) protected UIComponentfindChild(FaceletContext ctx, UIComponent parent, String tagId) protected UIComponentfindReparentedComponent(FaceletContext ctx, UIComponent parent, String tagId) protected booleanisIterating(FaceletContext context) protected voidpopComponentFromEL(FaceletContext ctx, UIComponent c, CompositeComponentStackManager ccStackManager, boolean compCompPushed) protected booleanpushComponentToEL(FaceletContext ctx, UIComponent c, CompositeComponentStackManager ccStackManager)
-
Field Details
-
componentType
-
id
-
-
Constructor Details
-
ComponentTagHandlerDelegateImpl
-
-
Method Details
-
apply
Method handles UIComponent tree creation in accordance with the Faces 1.2 spec.- First determines this UIComponent's id by calling
DelegatingMetaTagHandler.getTagId(). - Search the parent for an existing UIComponent of the id we just grabbed
- If found,
markits children for deletion. - If not found, call
createComponent.- Only here do we apply
MetaTagHandler.setAttributes(FaceletContext, Object) - Set the UIComponent's id
- Set the RendererType of this instance
- Only here do we apply
- Now apply the nextHandler, passing the UIComponent we've created/found.
- Now add the UIComponent to the passed parent
- Lastly, if the UIComponent already existed (found), then
finalizefor deletion.
- Specified by:
applyin classTagHandlerDelegate- Parameters:
ctx- theFaceletContextfor this requestparent- theUIComponentthat corresponds to this element.- Throws:
TagException- if the UIComponent parent is nullIOException- if any files necessary to apply this tag handler have any difficulty while loading
- First determines this UIComponent's id by calling
-
isIterating
-
createMetaRuleset
Description copied from class:TagHandlerDelegateReturn a
MetaRulesetparticular to this kind of tag handler. Called from classes that implementMetaTagHandler.- Specified by:
createMetaRulesetin classTagHandlerDelegate- Parameters:
type- theClassfor which theMetaRulesetmust be created.- Returns:
- a
MetaRulesetparticular to this kind of tag handler.
-
addComponentToView
protected void addComponentToView(FaceletContext ctx, UIComponent parent, UIComponent c, boolean componentFound) -
pushComponentToEL
protected boolean pushComponentToEL(FaceletContext ctx, UIComponent c, CompositeComponentStackManager ccStackManager) -
popComponentFromEL
protected void popComponentFromEL(FaceletContext ctx, UIComponent c, CompositeComponentStackManager ccStackManager, boolean compCompPushed) -
doOrphanedChildCleanup
-
assignUniqueId
-
doNewComponentActions
-
doExistingComponentActions
-
findChild
-
findReparentedComponent
-