public class ValidateMultipleHandler
extends javax.faces.view.facelets.ComponentHandler
ValidateMultiple
component, which will take care of setting the validator
attribute the right way as either ValueExpression
or MethodExpression
.Constructor and Description |
---|
ValidateMultipleHandler(javax.faces.view.facelets.ComponentConfig config)
Construct the tag handler for
ValidateMultiple component. |
Modifier and Type | Method and Description |
---|---|
void |
setAttributes(javax.faces.view.facelets.FaceletContext context,
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. |
getComponentConfig, getTagHandlerDelegate, isNew, onComponentCreated, onComponentPopulated
apply, applyNextHandler, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabled
public ValidateMultipleHandler(javax.faces.view.facelets.ComponentConfig config)
ValidateMultiple
component.config
- The component config.public void setAttributes(javax.faces.view.facelets.FaceletContext context, Object component)
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.setAttributes
in class javax.faces.view.facelets.DelegatingMetaTagHandler
Copyright © 2012–2014 OmniFaces. All rights reserved.