org.apache.myfaces.view.facelets.tag.composite
Class AttachedObjectTargetHandler<T extends javax.faces.view.AttachedObjectTarget>

java.lang.Object
  extended by javax.faces.view.facelets.TagHandler
      extended by org.apache.myfaces.view.facelets.tag.composite.AttachedObjectTargetHandler<T>
All Implemented Interfaces:
javax.faces.view.facelets.FaceletHandler
Direct Known Subclasses:
ActionSourceHandler, EditableValueHolderHandler, ValueHolderHandler

@JSFFaceletTag
public abstract class AttachedObjectTargetHandler<T extends javax.faces.view.AttachedObjectTarget>
extends javax.faces.view.facelets.TagHandler

composite:actionSource, composite:valueHolder and composite:editableValueHolder do the same: register an AttachedObjectTarget on the "targetList" mentioned on ViewDeclarationLanguage.retargetAttachedObjects. AttachedObjectTargetHandler group the common behavior

Version:
$Revision: 960906 $ $Date: 2010-07-06 09:45:40 -0500 (Tue, 06 Jul 2010) $
Author:
Leonardo Uribe (latest modification by $Author: jakobk $)

Field Summary
protected  javax.faces.view.facelets.TagAttribute _name
          Indicate the name of the attribute that the component should expose to page authors.
protected  javax.faces.view.facelets.TagAttribute _targets
           
 
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
 
Constructor Summary
AttachedObjectTargetHandler(javax.faces.view.facelets.TagConfig config)
           
 
Method Summary
 void apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent)
           
protected abstract  T createAttachedObjectTarget(javax.faces.view.facelets.FaceletContext ctx)
          Create a new AttachedObjectTarget instance to be added on the target list.
 boolean isCacheable()
           
 void setCacheable(boolean cacheable)
           
 
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
 

Field Detail

_name

@JSFFaceletAttribute(name="name",
                     className="javax.el.ValueExpression",
                     deferredValueType="java.lang.String",
                     required=true)
protected final javax.faces.view.facelets.TagAttribute _name
Indicate the name of the attribute that the component should expose to page authors.


_targets

@JSFFaceletAttribute(name="targets",
                     className="javax.el.ValueExpression",
                     deferredValueType="java.lang.String")
protected final javax.faces.view.facelets.TagAttribute _targets
Constructor Detail

AttachedObjectTargetHandler

public AttachedObjectTargetHandler(javax.faces.view.facelets.TagConfig config)
Method Detail

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 abstract T createAttachedObjectTarget(javax.faces.view.facelets.FaceletContext ctx)
Create a new AttachedObjectTarget instance to be added on the target list.

Returns:


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.