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 StringcomponentTypeprotected TagAttributeid -
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,
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
protected UIComponent findReparentedComponent(FaceletContext ctx, UIComponent parent, String tagId)
-