Class ValidatorHandler
- 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
 
 
 
 
 
- 
- All Implemented Interfaces:
- AttachedObjectHandler,- EditableValueHolderAttachedObjectHandler,- FaceletHandler,- ValueHolderAttachedObjectHandler
 
 public class ValidatorHandler extends FaceletsAttachedObjectHandler implements EditableValueHolderAttachedObjectHandler Handles setting a Validatorinstance on anEditableValueHolderparent. Will wire all attributes set to theValidatorinstance created/fetched. Uses the "binding" attribute for grabbing instances to apply attributes to.Will only set/create Validator is the passed UIComponent's parent is null, signifying that it wasn't restored from an existing tree. 
- 
- 
Field Summary- 
Fields inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandlerdelegateFactory
 - 
Fields inherited from class jakarta.faces.view.facelets.TagHandlernextHandler, tag, tagId
 
- 
 - 
Constructor SummaryConstructors Constructor Description ValidatorHandler(ValidatorConfig config)Construct this instance around the configuration information in argumentconfig
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TagHandlerDelegategetTagHandlerDelegate()Return the implementation specific delegate instance that provides the bulk of the work for this handler instance.ValidatorConfiggetValidatorConfig()Return theTagConfigsubclass used to configure this handler instance.StringgetValidatorId(FaceletContext ctx)Retrieve the id of the validator that is to be created and added to the parentEditableValueHolder.- 
Methods inherited from class jakarta.faces.view.facelets.FaceletsAttachedObjectHandlerapplyAttachedObject, getAttachedObjectHandlerHelper, getFor
 - 
Methods inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandlerapply, applyNextHandler, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabled, setAttributes
 - 
Methods inherited from class jakarta.faces.view.facelets.TagHandlergetAttribute, getRequiredAttribute, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jakarta.faces.view.AttachedObjectHandlerapplyAttachedObject, getFor
 
- 
 
- 
- 
- 
Constructor Detail- 
ValidatorHandlerpublic ValidatorHandler(ValidatorConfig config) Construct this instance around the configuration information in argument config- Parameters:
- config- the- TagConfigsubclass for this kind of attached object.
 
 
- 
 - 
Method Detail- 
getTagHandlerDelegateprotected TagHandlerDelegate getTagHandlerDelegate() Return the implementation specific delegate instance that provides the bulk of the work for this handler instance. - Specified by:
- getTagHandlerDelegatein class- DelegatingMetaTagHandler
- Returns:
- the implementation specific delegate instance
 
 - 
getValidatorIdpublic String getValidatorId(FaceletContext ctx) Retrieve the id of the validator that is to be created and added to the parent EditableValueHolder. All subclasses should override this method because it is important for Facelets to have a unique way of identifying the validators that are added to thisEditableValueHolderand allows exclusions to work properly. An exclusion is a validator declaration that has the attribute "disabled" which resolves to false, instructing Facelets not to register a default validator with the same id.- Parameters:
- ctx- the FaceletContext for this- Facelet
- Returns:
- the validator-id
 
 - 
getValidatorConfigpublic ValidatorConfig getValidatorConfig() Return the TagConfigsubclass used to configure this handler instance.- Returns:
- the TagConfigsubclass used to configure this handler instance.
 
 
- 
 
-