Class ClientBehaviorHandler
java.lang.Object
jakarta.faces.view.facelets.TagHandler
org.apache.myfaces.view.facelets.tag.composite.ClientBehaviorHandler
- All Implemented Interfaces:
FaceletHandler
@JSFFaceletTag(name="composite:clientBehavior")
public class ClientBehaviorHandler
extends TagHandler
- Version:
- $Revision$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TagAttribute
Indicate this clientBehavior description is the one that has to be taken by default.protected final TagAttribute
This attribute is used as the target event name, so client behaviors pointing to "name" will be attached on the related components identified by "targets" attribute and on the event name this attribute holds.protected final TagAttribute
This attribute represents the source event name that is used when instances of the composite component are used.protected final TagAttribute
Contains a list of clientIds separated by spaces that identify the component(s) that will be used to attach client behaviors from the composite component.Fields inherited from class jakarta.faces.view.facelets.TagHandler
nextHandler, tag, tagId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(FaceletContext ctx, UIComponent parent) protected ClientBehaviorAttachedObjectTargetImpl
Create a new AttachedObjectTarget instance to be added on the target list.boolean
void
setCacheable
(boolean cacheable) Methods inherited from class jakarta.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
Field Details
-
_event
@JSFFaceletAttribute(name="event", className="jakarta.el.ValueExpression", deferredValueType="java.lang.String", required=true) protected final TagAttribute _eventThis attribute is used as the target event name, so client behaviors pointing to "name" will be attached on the related components identified by "targets" attribute and on the event name this attribute holds. In other words, this is the "real" event name. -
_name
@JSFFaceletAttribute(name="name", className="jakarta.el.ValueExpression", deferredValueType="java.lang.String", required=true) protected final TagAttribute _nameThis attribute represents the source event name that is used when instances of the composite component are used. In other words, this is the "logical" event name. -
_default
@JSFFaceletAttribute(name="default", className="jakarta.el.ValueExpression", deferredValueType="boolean") protected final TagAttribute _defaultIndicate this clientBehavior description is the one that has to be taken by default. There should be only one clientBehavior with this property set to true in a composite component interface description. -
_targets
@JSFFaceletAttribute(name="targets", className="jakarta.el.ValueExpression", deferredValueType="java.lang.String") protected final TagAttribute _targetsContains a list of clientIds separated by spaces that identify the component(s) that will be used to attach client behaviors from the composite component.
-
-
Constructor Details
-
ClientBehaviorHandler
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFaceletHandler
- Throws:
IOException
-
isCacheable
public boolean isCacheable() -
setCacheable
public void setCacheable(boolean cacheable) -
createAttachedObjectTarget
Create a new AttachedObjectTarget instance to be added on the target list.- Returns:
-