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