public class BehaviorHandler extends FaceletsAttachedObjectHandler implements BehaviorHolderAttachedObjectHandler
The FaceletHandler that corresponds to attached objects that represent an instance of
ClientBehavior that must be added to the parent component, which must
implement ClientBehaviorHolder, with a call to
ClientBehaviorHolder.addClientBehavior(java.lang.String, jakarta.faces.component.behavior.ClientBehavior). The current specification defines
one Facelet element for this sort of attached object, <f:ajax>.
delegateFactorynextHandler, tag, tagId| Constructor and Description |
|---|
BehaviorHandler(BehaviorConfig config)
Constructs the handler using the Id from the config.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBehaviorId()
Returns the behavior Id obtained from the passed-in config.
|
TagAttribute |
getEvent()
Returns the event that is set as the "event" attribute on the behavior tag.
|
java.lang.String |
getEventName()
Return the client event name to which this behavior applies. |
protected TagHandlerDelegate |
getTagHandlerDelegate()
Get the tag handler delegate. |
applyAttachedObject, getAttachedObjectHandlerHelper, getForapply, applyNextHandler, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabled, setAttributesgetAttribute, getRequiredAttribute, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyAttachedObject, getForpublic BehaviorHandler(BehaviorConfig config)
config - config instance to get the behavior Id from.public java.lang.String getEventName()
BehaviorHolderAttachedObjectHandlerReturn the client event name to which this behavior applies.
getEventName in interface BehaviorHolderAttachedObjectHandlerprotected TagHandlerDelegate getTagHandlerDelegate()
DelegatingMetaTagHandlerGet the tag handler delegate.
Code that extends from DelegatingMetaTagHandler (directly or indirectly, as through extending ComponentHandler) must take care to decorate, not replace, the TagHandlerDelegate instance returned by this method. Failure to do so may produce unexpected results.
getTagHandlerDelegate in class DelegatingMetaTagHandlerpublic java.lang.String getBehaviorId()
public TagAttribute getEvent()