Class ValidatorTagHandlerDelegateImpl
- java.lang.Object
-
- jakarta.faces.view.facelets.TagHandlerDelegate
-
- com.sun.faces.facelets.tag.faces.ValidatorTagHandlerDelegateImpl
-
- All Implemented Interfaces:
AttachedObjectHandler
public class ValidatorTagHandlerDelegateImpl extends TagHandlerDelegate implements AttachedObjectHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected ValidatorHandler
owner
-
Constructor Summary
Constructors Constructor Description ValidatorTagHandlerDelegateImpl(ValidatorHandler owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(FaceletContext ctx, UIComponent parent)
void
applyAttachedObject(FacesContext context, UIComponent parent)
Take the argumentparent
and apply this attached object to it.MetaRuleset
createMetaRuleset(Class type)
Return aMetaRuleset
particular to this kind of tag handler.protected ComponentValidators.ValidatorInfo
createValidatorInfo(FaceletContext ctx)
String
getFor()
Return the value of the "for" attribute specified by the page author on the tag for thisAttachedObjectHandler
.
-
-
-
Field Detail
-
owner
protected final ValidatorHandler owner
-
-
Constructor Detail
-
ValidatorTagHandlerDelegateImpl
public ValidatorTagHandlerDelegateImpl(ValidatorHandler owner)
-
-
Method Detail
-
apply
public void apply(FaceletContext ctx, UIComponent parent) throws IOException
Description copied from class:TagHandlerDelegate
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.- Specified by:
apply
in classTagHandlerDelegate
- Parameters:
ctx
- theFaceletContext
for this requestparent
- theUIComponent
that corresponds to this element.- Throws:
IOException
- if any files necessary to apply this tag handler have any difficulty while loading
-
createMetaRuleset
public MetaRuleset createMetaRuleset(Class type)
Description copied from class:TagHandlerDelegate
Return a
MetaRuleset
particular to this kind of tag handler. Called from classes that implementMetaTagHandler
.- Specified by:
createMetaRuleset
in classTagHandlerDelegate
- Parameters:
type
- theClass
for which theMetaRuleset
must be created.- Returns:
- a
MetaRuleset
particular to this kind of tag handler.
-
applyAttachedObject
public void applyAttachedObject(FacesContext context, UIComponent parent)
Description copied from interface:AttachedObjectHandler
Take the argument
parent
and apply this attached object to it. The action taken varies with class that implements one of the subinterfaces of this interface.- Specified by:
applyAttachedObject
in interfaceAttachedObjectHandler
- Parameters:
context
- TheFacesContext
for this requestparent
- TheUIComponent
to which this particular attached object must be applied.
-
getFor
public String getFor()
Description copied from interface:AttachedObjectHandler
Return the value of the "for" attribute specified by the page author on the tag for this
AttachedObjectHandler
.- Specified by:
getFor
in interfaceAttachedObjectHandler
- Returns:
- the value of the "for" attribute for this attached object
-
createValidatorInfo
protected ComponentValidators.ValidatorInfo createValidatorInfo(FaceletContext ctx)
-
-