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
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 Detail
-
componentType
protected String componentType
-
id
protected final TagAttribute id
-
-
Constructor Detail
-
ComponentTagHandlerDelegateImpl
public ComponentTagHandlerDelegateImpl(ComponentHandler owner)
-
-
Method Detail
-
apply
public void apply(FaceletContext ctx, UIComponent parent) throws IOException
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
protected boolean isIterating(FaceletContext context)
-
createMetaRuleset
public MetaRuleset createMetaRuleset(Class type)
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
protected void doOrphanedChildCleanup(FaceletContext ctx, UIComponent parent, UIComponent c)
-
assignUniqueId
protected void assignUniqueId(FaceletContext ctx, UIComponent parent, String id, UIComponent c)
-
doNewComponentActions
protected void doNewComponentActions(FaceletContext ctx, String id, UIComponent c)
-
doExistingComponentActions
protected void doExistingComponentActions(FaceletContext ctx, String id, UIComponent c)
-
findChild
protected UIComponent findChild(FaceletContext ctx, UIComponent parent, String tagId)
-
findReparentedComponent
protected UIComponent findReparentedComponent(FaceletContext ctx, UIComponent parent, String tagId)
-
-