org.apache.myfaces.view.facelets.tag.composite
Class AttachedObjectTargetHandler<T extends AttachedObjectTarget>
java.lang.Object
javax.faces.view.facelets.TagHandler
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: 960906 $ $Date: 2010-07-06 09:45:40 -0500 (Tue, 06 Jul 2010) $
- Author:
- Leonardo Uribe (latest modification by $Author: jakobk $)
_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
AttachedObjectTargetHandler
public AttachedObjectTargetHandler(TagConfig config)
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 © 2012 The Apache Software Foundation. All Rights Reserved.