org.apache.myfaces.view.facelets.tag.composite
Class AttachedObjectTargetHandler<T extends 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:
FaceletHandler
Direct Known Subclasses:
ActionSourceHandler, EditableValueHolderHandler, ValueHolderHandler

@JSFFaceletTag
public abstract class AttachedObjectTargetHandler<T extends AttachedObjectTarget>
extends 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: 1194849 $ $Date: 2011-10-29 04:28:45 -0500 (Sat, 29 Oct 2011) $
Author:
Leonardo Uribe (latest modification by $Author: struberg $)

Field Summary
protected  TagAttribute _name
          Indicate the name of the attribute that the component should expose to page authors.
protected  TagAttribute _targets
           
 
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
 
Constructor Summary
AttachedObjectTargetHandler(TagConfig config)
           
 
Method Summary
 void apply(FaceletContext ctx, UIComponent parent)
           
protected abstract  T createAttachedObjectTarget(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 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 TagAttribute _targets
Constructor Detail

AttachedObjectTargetHandler

public AttachedObjectTargetHandler(TagConfig config)
Method Detail

apply

public void apply(FaceletContext ctx,
                  UIComponent parent)
           throws IOException
Specified by:
apply in interface FaceletHandler
Throws:
IOException

isCacheable

public boolean isCacheable()

setCacheable

public void setCacheable(boolean cacheable)

createAttachedObjectTarget

protected abstract T createAttachedObjectTarget(FaceletContext ctx)
Create a new AttachedObjectTarget instance to be added on the target list.

Returns:


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