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 ValidatorHandlerowner
-
Constructor Summary
Constructors Constructor Description ValidatorTagHandlerDelegateImpl(ValidatorHandler owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(FaceletContext ctx, UIComponent parent)voidapplyAttachedObject(FacesContext context, UIComponent parent)Take the argumentparentand apply this attached object to it.MetaRulesetcreateMetaRuleset(Class type)Return aMetaRulesetparticular to this kind of tag handler.protected ComponentValidators.ValidatorInfocreateValidatorInfo(FaceletContext ctx)StringgetFor()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:TagHandlerDelegateCalled by classes that implement
FaceletHandlerin their implementation ofapply().If the argument
compis 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 aValueExpressionmust remain un-evaluated and stored in the map asValueExpressioninstances.- Specified by:
applyin classTagHandlerDelegate- Parameters:
ctx- theFaceletContextfor this requestparent- theUIComponentthat 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:TagHandlerDelegateReturn a
MetaRulesetparticular to this kind of tag handler. Called from classes that implementMetaTagHandler.- Specified by:
createMetaRulesetin classTagHandlerDelegate- Parameters:
type- theClassfor which theMetaRulesetmust be created.- Returns:
- a
MetaRulesetparticular to this kind of tag handler.
-
applyAttachedObject
public void applyAttachedObject(FacesContext context, UIComponent parent)
Description copied from interface:AttachedObjectHandlerTake the argument
parentand apply this attached object to it. The action taken varies with class that implements one of the subinterfaces of this interface.- Specified by:
applyAttachedObjectin interfaceAttachedObjectHandler- Parameters:
context- TheFacesContextfor this requestparent- TheUIComponentto which this particular attached object must be applied.
-
getFor
public String getFor()
Description copied from interface:AttachedObjectHandlerReturn the value of the "for" attribute specified by the page author on the tag for this
AttachedObjectHandler.- Specified by:
getForin interfaceAttachedObjectHandler- Returns:
- the value of the "for" attribute for this attached object
-
createValidatorInfo
protected ComponentValidators.ValidatorInfo createValidatorInfo(FaceletContext ctx)
-
-