- 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 forValidateMultiple
component, which will take care of setting thevalidator
attribute the right way as eitherValueExpression
orMethodExpression
.- 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 forValidateMultiple
component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setAttributes(FaceletContext context, Object component)
Delegate to super and then try to get aValueExpression
representing aMultiFieldValidator
implementation and set it asvalidator
property of currentValidateMultiple
component, or if it couldn't be obtained, then get aMethodExpression
representing a method with the same signature asMultiFieldValidator.validateValues(FacesContext, List, List)
and set it asvalidateMethod
property of currentValidateMultiple
component.-
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 forValidateMultiple
component.- Parameters:
config
- The component config.
-
-
Method Detail
-
setAttributes
public void setAttributes(FaceletContext context, Object component)
Delegate to super and then try to get aValueExpression
representing aMultiFieldValidator
implementation and set it asvalidator
property of currentValidateMultiple
component, or if it couldn't be obtained, then get aMethodExpression
representing a method with the same signature asMultiFieldValidator.validateValues(FacesContext, List, List)
and set it asvalidateMethod
property of currentValidateMultiple
component.- Overrides:
setAttributes
in classDelegatingMetaTagHandler
-
-