Class AttachedObjectTargetHandler<T extends AttachedObjectTarget>
- java.lang.Object
-
- jakarta.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$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
-
-
Field Summary
Fields Modifier and Type Field Description protected TagAttribute
_name
Indicate the name of the attribute that the component should expose to page authors.protected TagAttribute
_targets
-
Fields inherited from class jakarta.faces.view.facelets.TagHandler
nextHandler, tag, tagId
-
-
Constructor Summary
Constructors Constructor Description AttachedObjectTargetHandler(TagConfig config)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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 jakarta.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
-
-
-
Field Detail
-
_name
@JSFFaceletAttribute(name="name", className="jakarta.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="jakarta.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 interfaceFaceletHandler
- 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:
-
-