Class ValidateMultipleHandler
- 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
public class ValidateMultipleHandler extends ComponentHandler
A handler forValidateMultiplecomponent, which will take care of setting thevalidatorattribute the right way as eitherValueExpressionorMethodExpression.- Since:
- 1.7
- Author:
- Juliano Marques, Bauke Scholtz
-
-
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 ValidateMultipleHandler(ComponentConfig config)Construct the tag handler forValidateMultiplecomponent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAttributes(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, onComponentPopulated
-
Methods inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandler
apply, applyNextHandler, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabled
-
Methods inherited from class jakarta.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
-
-
-
Constructor Detail
-
ValidateMultipleHandler
public ValidateMultipleHandler(ComponentConfig config)
Construct the tag handler forValidateMultiplecomponent.- Parameters:
config- The component config.
-
-
Method Detail
-
setAttributes
public void setAttributes(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.- Overrides:
setAttributesin classDelegatingMetaTagHandler
-
-