Class TagHandlerDelegate
- java.lang.Object
-
- jakarta.faces.view.facelets.TagHandlerDelegate
-
public abstract class TagHandlerDelegate extends Object
Abstract class that defines methods relating to helping tag handler instances. This abstraction enables implementation details to be hidden by the Jakarta Faces implementation while still allowing concrete classes to be defined for extension by users.
- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description TagHandlerDelegate()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
apply(FaceletContext ctx, UIComponent comp)
abstract MetaRuleset
createMetaRuleset(Class type)
Return aMetaRuleset
particular to this kind of tag handler.
-
-
-
Method Detail
-
createMetaRuleset
public abstract MetaRuleset createMetaRuleset(Class type)
Return a
MetaRuleset
particular to this kind of tag handler. Called from classes that implementMetaTagHandler
.- Parameters:
type
- theClass
for which theMetaRuleset
must be created.- Returns:
- a
MetaRuleset
particular to this kind of tag handler. - Since:
- 2.0
-
apply
public abstract void apply(FaceletContext ctx, UIComponent comp) throws IOException
Called by classes that implement
FaceletHandler
in their implementation ofapply()
.If the argument
comp
is new to the view, for each tag attribute declared to be in the pass through attribute namespace, set the name and value of the attribute into the pass through attributes map of the component. SeeUIComponent.getPassThroughAttributes(boolean)
. See the VDLDocs for the namespace URI of the pass through attribute namespace. Attributes whose value is aValueExpression
must remain un-evaluated and stored in the map asValueExpression
instances.- Parameters:
ctx
- theFaceletContext
for this requestcomp
- theUIComponent
that corresponds to this element.- Throws:
IOException
- if any files necessary to apply this tag handler have any difficulty while loading
-
-