org.omnifaces.component.validator
Class ValidateMultipleHandler

java.lang.Object
  extended by javax.faces.view.facelets.TagHandler
      extended by javax.faces.view.facelets.MetaTagHandler
          extended by javax.faces.view.facelets.DelegatingMetaTagHandler
              extended by javax.faces.view.facelets.ComponentHandler
                  extended by 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

Field Summary
 
Fields inherited from class javax.faces.view.facelets.DelegatingMetaTagHandler
delegateFactory
 
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
 
Constructor Summary
ValidateMultipleHandler(javax.faces.view.facelets.ComponentConfig config)
          Construct the tag handler for ValidateMultiple component.
 
Method Summary
 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.
 
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
 

Constructor Detail

ValidateMultipleHandler

public ValidateMultipleHandler(javax.faces.view.facelets.ComponentConfig config)
Construct the tag handler for ValidateMultiple component.

Parameters:
config - The component config.
Method Detail

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