- All Implemented Interfaces:
AttachedObjectHandler
,EditableValueHolderAttachedObjectHandler
,FaceletHandler
,ValueHolderAttachedObjectHandler
- Direct Known Subclasses:
ValidateDelegateHandler
Handles setting a Validator
instance on an
EditableValueHolder
parent. Will wire all attributes set to the
Validator
instance 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.DelegatingMetaTagHandler
delegateFactory
Fields inherited from class jakarta.faces.view.facelets.TagHandler
nextHandler, tag, tagId
-
Constructor Summary
ConstructorDescriptionValidatorHandler
(ValidatorConfig config) Construct this instance around the configuration information in argumentconfig
-
Method Summary
Modifier and TypeMethodDescriptionprotected TagHandlerDelegate
Return the implementation specific delegate instance that provides the bulk of the work for this handler instance.Return theTagConfig
subclass used to configure this handler instance.Retrieve the id of the validator that is to be created and added to the parentEditableValueHolder
.Methods inherited from class jakarta.faces.view.facelets.FaceletsAttachedObjectHandler
applyAttachedObject, getAttachedObjectHandlerHelper, getFor
Methods inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandler
apply, applyNextHandler, createMetaRuleset, 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 Details
-
ValidatorHandler
Construct this instance around the configuration information in argument
config
- Parameters:
config
- theTagConfig
subclass for this kind of attached object.
-
-
Method Details
-
getTagHandlerDelegate
Return the implementation specific delegate instance that provides the bulk of the work for this handler instance.
- Specified by:
getTagHandlerDelegate
in classDelegatingMetaTagHandler
- Returns:
- the implementation specific delegate instance
-
getValidatorId
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 thisEditableValueHolder
and 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 thisFacelet
- Returns:
- the validator-id
-
getValidatorConfig
Return the
TagConfig
subclass used to configure this handler instance.- Returns:
- the
TagConfig
subclass used to configure this handler instance.
-