The FaceletHandler
that corresponds to attached objects that represent an instance of
jakarta.faces.component.behavior.ClientBehavior
that must be added to the parent component, which must
implement jakarta.faces.component.behavior.ClientBehaviorHolder
, with a call to
jakarta.faces.component.behavior.ClientBehaviorHolder#addClientBehavior
. The current specification defines
one Facelet element for this sort of attached object, <f:ajax>
.
Modifier and Type | Field and Description |
---|---|
private String | |
private final TagAttribute | |
private TagHandlerDelegate |
Access | Constructor and Description |
---|---|
public | BehaviorHandler(BehaviorConfig
config instance to get the behavior Id from. config)Constructs the handler using the Id from the config. |
Modifier and Type | Method and Description |
---|---|
public String | |
public TagAttribute | Returns: the event tag attributeReturns the event that is set as the "event" attribute on the behavior tag. |
public String | getEventName()
Implements jakarta. Return the client event name to which this behavior applies. |
protected TagHandlerDelegate | getTagHandlerDelegate()
Implements abstract jakarta. Get the tag handler delegate. |
behaviorId | back to summary |
---|---|
private String behaviorId |
event | back to summary |
---|---|
private final TagAttribute event |
helper | back to summary |
---|---|
private TagHandlerDelegate helper |
BehaviorHandler | back to summary |
---|---|
public BehaviorHandler(BehaviorConfig config) Constructs the handler using the Id from the config.
|
getBehaviorId | back to summary |
---|---|
public String getBehaviorId() Returns the behavior Id obtained from the passed-in config.
|
getEvent | back to summary |
---|---|
public TagAttribute getEvent() Returns the event that is set as the "event" attribute on the behavior tag.
|
getEventName | back to summary |
---|---|
public String getEventName() Implements jakarta. Doc from jakarta. Return the client event name to which this behavior applies. |
getTagHandlerDelegate | back to summary |
---|---|
protected TagHandlerDelegate getTagHandlerDelegate() Implements abstract jakarta. Doc from jakarta. Get 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.
|