org.omnifaces.component.validator
Class ValidateMultipleHandler
java.lang.Object
javax.faces.view.facelets.TagHandler
javax.faces.view.facelets.MetaTagHandler
javax.faces.view.facelets.DelegatingMetaTagHandler
javax.faces.view.facelets.ComponentHandler
org.omnifaces.component.validator.ValidateMultipleHandler
- All Implemented Interfaces:
- javax.faces.view.facelets.FaceletHandler
public class ValidateMultipleHandler
- extends javax.faces.view.facelets.ComponentHandler
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
Fields inherited from class javax.faces.view.facelets.DelegatingMetaTagHandler |
delegateFactory |
Fields inherited from class javax.faces.view.facelets.TagHandler |
nextHandler, tag, tagId |
Methods inherited from class javax.faces.view.facelets.ComponentHandler |
getComponentConfig, getTagHandlerDelegate, isNew, onComponentCreated, onComponentPopulated |
Methods inherited from class javax.faces.view.facelets.DelegatingMetaTagHandler |
apply, applyNextHandler, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabled |
Methods inherited from class javax.faces.view.facelets.TagHandler |
getAttribute, getRequiredAttribute, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ValidateMultipleHandler
public ValidateMultipleHandler(javax.faces.view.facelets.ComponentConfig config)
- Construct the tag handler for
ValidateMultiple
component.
- Parameters:
config
- The component config.
setAttributes
public void setAttributes(javax.faces.view.facelets.FaceletContext context,
java.lang.Object component)
- Delegate to super and then try to get a
ValueExpression
representing a MultiFieldValidator
implementation and set it as validator
property of current ValidateMultiple
component, or
if it couldn't be obtained, then get a MethodExpression
representing a method with the same signature
as MultiFieldValidator.validateValues(FacesContext, List, List)
and set it as validateMethod
property of current ValidateMultiple
component.
- Overrides:
setAttributes
in class javax.faces.view.facelets.DelegatingMetaTagHandler