Package com.sun.faces.facelets.tag.jsf
Class ComponentTagHandlerDelegateImpl
java.lang.Object
jakarta.faces.view.facelets.TagHandlerDelegate
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl
- Direct Known Subclasses:
ComponentResourceDelegate
public class ComponentTagHandlerDelegateImpl extends TagHandlerDelegate
-
Field Summary
Fields Modifier and Type Field Description protected String
componentType
protected TagAttribute
id
-
Constructor Summary
Constructors Constructor Description ComponentTagHandlerDelegateImpl(ComponentHandler owner)
-
Method Summary
-
Field Details
-
Constructor Details
-
Method Details
-
apply
Method handles UIComponent tree creation in accordance with the JSF 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
protected UIComponent findReparentedComponent(FaceletContext ctx, UIComponent parent, String tagId)
-