Class ValidateDelegateHandler
- java.lang.Object
-
- jakarta.faces.view.facelets.TagHandler
-
- jakarta.faces.view.facelets.MetaTagHandler
-
- jakarta.faces.view.facelets.DelegatingMetaTagHandler
-
- jakarta.faces.view.facelets.FaceletsAttachedObjectHandler
-
- jakarta.faces.view.facelets.ValidatorHandler
-
- com.sun.faces.facelets.tag.faces.core.ValidateDelegateHandler
-
- All Implemented Interfaces:
AttachedObjectHandler
,EditableValueHolderAttachedObjectHandler
,FaceletHandler
,ValueHolderAttachedObjectHandler
public final class ValidateDelegateHandler extends ValidatorHandler
Register a named Validator instance on the UIComponent associated with the closest parent UIComponent custom action. See tag documentation.- Version:
- $Id$
- Author:
- Jacob Hookom
-
-
Field Summary
-
Fields inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandler
delegateFactory
-
Fields inherited from class jakarta.faces.view.facelets.TagHandler
nextHandler, tag, tagId
-
-
Constructor Summary
Constructors Constructor Description ValidateDelegateHandler(ValidatorConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MetaRuleset
createMetaRuleset(Class type)
The default implementation simply calls through toTagHandlerDelegate.createMetaRuleset(java.lang.Class)
and returns the result.protected String
getValidator(FaceletContext ctx)
Resolve the validator id from the attribute "validatorId", which is then used to create a new Validator instance from the Application.-
Methods inherited from class jakarta.faces.view.facelets.ValidatorHandler
getTagHandlerDelegate, getValidatorConfig, getValidatorId
-
Methods inherited from class jakarta.faces.view.facelets.FaceletsAttachedObjectHandler
applyAttachedObject, getAttachedObjectHandlerHelper, getFor
-
Methods inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandler
apply, applyNextHandler, getBinding, getTag, getTagAttribute, getTagId, isDisabled, setAttributes
-
Methods inherited from class jakarta.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.faces.view.AttachedObjectHandler
applyAttachedObject, getFor
-
-
-
-
Constructor Detail
-
ValidateDelegateHandler
public ValidateDelegateHandler(ValidatorConfig config)
-
-
Method Detail
-
getValidator
protected String getValidator(FaceletContext ctx)
Resolve the validator id from the attribute "validatorId", which is then used to create a new Validator instance from the Application.
-
createMetaRuleset
protected MetaRuleset createMetaRuleset(Class type)
Description copied from class:DelegatingMetaTagHandler
The default implementation simply calls through to
TagHandlerDelegate.createMetaRuleset(java.lang.Class)
and returns the result.- Overrides:
createMetaRuleset
in classDelegatingMetaTagHandler
- Parameters:
type
- theClass
for which theMetaRuleset
must be created.- Returns:
- the
MetaRuleset
.
-
-