org.apache.myfaces.view.facelets.tag.composite
Class ClientBehaviorHandler
java.lang.Object
javax.faces.view.facelets.TagHandler
org.apache.myfaces.view.facelets.tag.composite.ClientBehaviorHandler
- All Implemented Interfaces:
- javax.faces.view.facelets.FaceletHandler
@JSFFaceletTag(name="composite:clientBehavior")
public class ClientBehaviorHandler
- extends javax.faces.view.facelets.TagHandler
- Version:
- $Revision: 808704 $ $Date: 2009-08-27 19:56:06 -0500 (jue, 27 ago 2009) $
- Author:
- Leonardo Uribe (latest modification by $Author: lu4242 $)
Field Summary |
protected javax.faces.view.facelets.TagAttribute |
_default
Indicate this clientBehavior description is the one
that has to be taken by default. |
protected javax.faces.view.facelets.TagAttribute |
_event
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 javax.faces.view.facelets.TagAttribute |
_name
This attribute represents the source event name
that is used when instances of the composite
component are used. |
protected javax.faces.view.facelets.TagAttribute |
_targets
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 javax.faces.view.facelets.TagHandler |
nextHandler, tag, tagId |
Methods inherited from class javax.faces.view.facelets.TagHandler |
getAttribute, getRequiredAttribute, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_event
@JSFFaceletAttribute(name="event",
className="javax.el.ValueExpression",
deferredValueType="java.lang.String",
required=true)
protected final javax.faces.view.facelets.TagAttribute _event
- 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. In other
words, this is the "real" event name.
_name
@JSFFaceletAttribute(name="name",
className="javax.el.ValueExpression",
deferredValueType="java.lang.String",
required=true)
protected final javax.faces.view.facelets.TagAttribute _name
- This 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="javax.el.ValueExpression",
deferredValueType="boolean")
protected final javax.faces.view.facelets.TagAttribute _default
- Indicate 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="javax.el.ValueExpression",
deferredValueType="java.lang.String")
protected final javax.faces.view.facelets.TagAttribute _targets
- 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.
ClientBehaviorHandler
public ClientBehaviorHandler(javax.faces.view.facelets.TagConfig config)
apply
public void apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent)
throws java.io.IOException
- Specified by:
apply
in interface javax.faces.view.facelets.FaceletHandler
- Throws:
java.io.IOException
isCacheable
public boolean isCacheable()
setCacheable
public void setCacheable(boolean cacheable)
createAttachedObjectTarget
protected ClientBehaviorAttachedObjectTargetImpl createAttachedObjectTarget(javax.faces.view.facelets.FaceletContext ctx)
- Create a new AttachedObjectTarget instance to be added on the
target list.
- Returns:
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.