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 void
addComponentToView
(FaceletContext ctx, UIComponent parent, UIComponent c, boolean componentFound) void
apply
(FaceletContext ctx, UIComponent parent) Method handles UIComponent tree creation in accordance with the Faces 1.2 spec.protected void
assignUniqueId
(FaceletContext ctx, UIComponent parent, String id, UIComponent c) createMetaRuleset
(Class type) Return aMetaRuleset
particular to this kind of tag handler.protected void
doExistingComponentActions
(FaceletContext ctx, String id, UIComponent c) protected void
doNewComponentActions
(FaceletContext ctx, String id, UIComponent c) protected void
doOrphanedChildCleanup
(FaceletContext ctx, UIComponent parent, UIComponent c) protected UIComponent
findChild
(FaceletContext ctx, UIComponent parent, String tagId) protected UIComponent
findReparentedComponent
(FaceletContext ctx, UIComponent parent, String tagId) protected boolean
isIterating
(FaceletContext context) protected void
popComponentFromEL
(FaceletContext ctx, UIComponent c, CompositeComponentStackManager ccStackManager, boolean compCompPushed) protected boolean
pushComponentToEL
(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,
mark
its 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
finalize
for deletion.
- Specified by:
apply
in classTagHandlerDelegate
- Parameters:
ctx
- theFaceletContext
for this requestparent
- theUIComponent
that 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:TagHandlerDelegate
Return a
MetaRuleset
particular to this kind of tag handler. Called from classes that implementMetaTagHandler
.- Specified by:
createMetaRuleset
in classTagHandlerDelegate
- Parameters:
type
- theClass
for which theMetaRuleset
must be created.- Returns:
- a
MetaRuleset
particular 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
-