public class DelegateFormFieldValidator extends Object implements FormFieldValidator
FormFieldValidator
delegating to a custom, user-provided validator implementation.
The implementation is resolved either using a fully qualified classname of a Java Class
or using a java delegate implementation.Modifier and Type | Field and Description |
---|---|
protected String |
clazz |
protected Expression |
delegateExpression |
Constructor and Description |
---|
DelegateFormFieldValidator() |
DelegateFormFieldValidator(Expression expression) |
DelegateFormFieldValidator(String clazz) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doValidate(Object submittedValue,
FormFieldValidatorContext validatorContext) |
protected boolean |
shouldPerformPaContextSwitch(DelegateExecution execution) |
boolean |
validate(Object submittedValue,
FormFieldValidatorContext validatorContext)
return true if the submitted value is valid for the given form field.
|
protected String clazz
protected Expression delegateExpression
public DelegateFormFieldValidator(Expression expression)
public DelegateFormFieldValidator(String clazz)
public DelegateFormFieldValidator()
public boolean validate(Object submittedValue, FormFieldValidatorContext validatorContext)
FormFieldValidator
validate
in interface FormFieldValidator
submittedValue
- the value submitted to the form fieldvalidatorContext
- object providing access to additional information useful wile
validating the formprotected boolean shouldPerformPaContextSwitch(DelegateExecution execution)
protected boolean doValidate(Object submittedValue, FormFieldValidatorContext validatorContext)
Copyright © 2017. All rights reserved.