Class FaceletsAttachedObjectHandler
java.lang.Object
jakarta.faces.view.facelets.TagHandler
jakarta.faces.view.facelets.MetaTagHandler
jakarta.faces.view.facelets.DelegatingMetaTagHandler
jakarta.faces.view.facelets.FaceletsAttachedObjectHandler
- All Implemented Interfaces:
AttachedObjectHandler, FaceletHandler
- Direct Known Subclasses:
BehaviorHandler, ConverterHandler, ValidatorHandler
public abstract class FaceletsAttachedObjectHandler
extends DelegatingMetaTagHandler
implements AttachedObjectHandler
Root class for all tag handlers that represent attached objetcts in a Facelets page.
-
Field Summary
Fields inherited from class DelegatingMetaTagHandler
delegateFactoryModifier and TypeFieldDescriptionprotected TagHandlerDelegateFactoryClass that defines methods relating to helping tag handler instances.Fields inherited from class TagHandler
nextHandler, tag, tagIdModifier and TypeFieldDescriptionprotected final FaceletHandlerA reference to theFaceletHandlerthat represents the first nested child of thisTagHandlerinstance.protected final TagA reference to theTaginstance corresponding to thisTagHandlerinstance.protected final StringSeeTagConfig.getTagId(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidapplyAttachedObject(FacesContext ctx, UIComponent parent) Take the necessary actions to apply the attached object represented by the tag for the concrete subclass of this class to the argumentparent.protected final AttachedObjectHandlerReturn the underlying handler for this tag handler instance.final StringgetFor()Return the value of the "for" attribute.Methods inherited from class DelegatingMetaTagHandler
apply, applyNextHandler, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagHandlerDelegate, getTagId, isDisabled, setAttributesModifier and TypeMethodDescriptionvoidapply(FaceletContext ctx, UIComponent parent) The default implementation simply calls through toTagHandlerDelegate.apply(FaceletContext, UIComponent).voidInvoke theapply()method on this instance'sTagHandler.nextHandler.protected MetaRulesetcreateMetaRuleset(Class type) The default implementation simply calls through toTagHandlerDelegate.createMetaRuleset(Class)and returns the result.Return the "binding" attribute.getTag()Return a reference to theTaginstance corresponding to thisTagHandlerinstance.getTagAttribute(String localName) Return the named attribute from the tag attributes.protected abstract TagHandlerDelegateGet the tag handler delegate.getTagId()Return the tag id from theTagConfigused to instantiate this handler.booleanisDisabled(FaceletContext ctx) Returns the value of the "disabled" attribute.voidsetAttributes(FaceletContext ctx, Object instance) Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance.Methods inherited from class TagHandler
getAttribute, getRequiredAttribute, toStringModifier and TypeMethodDescriptionprotected final TagAttributegetAttribute(String localName) Utility method for fetching the appropriate TagAttributeprotected final TagAttributegetRequiredAttribute(String localName) Utility method for fetching a required TagAttributetoString()
-
Constructor Details
-
FaceletsAttachedObjectHandler
Call through to super
- Parameters:
config- configure this handler instance
-
-
Method Details
-
getAttachedObjectHandlerHelper
Return the underlying handler for this tag handler instance.
- Returns:
- the handler instance
-
applyAttachedObject
Take the necessary actions to apply the attached object represented by the tag for the concrete subclass of this class to the argument
parent.- Specified by:
applyAttachedObjectin interfaceAttachedObjectHandler- Parameters:
ctx- theFacesContextfor this requestparent- TheUIComponentto which this attached object must be applied.
-
getFor
Return the value of the "for" attribute. This enables the runtime to know to which inner component this attached object should be retargeted.
- Specified by:
getForin interfaceAttachedObjectHandler- Returns:
- the value of the "for" attribute for this attached object
-