java.lang.Object
jakarta.faces.view.facelets.TagHandler
jakarta.faces.view.facelets.MetaTagHandler
jakarta.faces.view.facelets.DelegatingMetaTagHandler
jakarta.faces.view.facelets.ComponentHandler
org.omnifaces.component.validator.ValidateMultipleHandler
- All Implemented Interfaces:
FaceletHandler
A handler for
ValidateMultiple component, which will take care of setting the validator
attribute the right way as either ValueExpression or MethodExpression.- Since:
- 1.7
- Author:
- Juliano Marques, Bauke Scholtz
-
Field Summary
Fields inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandler
delegateFactoryFields inherited from class jakarta.faces.view.facelets.TagHandler
nextHandler, tag, tagId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAttributes(FaceletContext context, Object component) Delegate to super and then try to get aValueExpressionrepresenting aMultiFieldValidatorimplementation and set it asvalidatorproperty of currentValidateMultiplecomponent, or if it couldn't be obtained, then get aMethodExpressionrepresenting a method with the same signature asMultiFieldValidator.validateValues(FacesContext, List, List)and set it asvalidateMethodproperty of currentValidateMultiplecomponent.Methods inherited from class jakarta.faces.view.facelets.ComponentHandler
createComponent, getComponentConfig, getTagHandlerDelegate, isNew, onComponentCreated, onComponentPopulatedMethods inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandler
apply, applyNextHandler, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabledMethods inherited from class jakarta.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
Constructor Details
-
ValidateMultipleHandler
Construct the tag handler forValidateMultiplecomponent.- Parameters:
config- The component config.
-
-
Method Details
-
setAttributes
Delegate to super and then try to get aValueExpressionrepresenting aMultiFieldValidatorimplementation and set it asvalidatorproperty of currentValidateMultiplecomponent, or if it couldn't be obtained, then get aMethodExpressionrepresenting a method with the same signature asMultiFieldValidator.validateValues(FacesContext, List, List)and set it asvalidateMethodproperty of currentValidateMultiplecomponent.- Overrides:
setAttributesin classDelegatingMetaTagHandler
-