public interface FormValidator
ActionProvider or the formBean that is used by an
ActionProvider . A FormValidator is used for contextual validation, e.g. to verify that one value is
greater than the other or that two given passwords match. For all other basic validations, use
JSR-380 (Bean Validtion 2.0) annotations.validate()-method is being called before the ActionProviders perform-method. Only if
there are no errors (see FieldProcessor.hasErrors()), the ActionProvider is being actually called.ActionProvider.perform(Site, Application, Environment, Options, Request, Object, FieldProcessor),
FieldProcessor.hasErrors()| Modifier and Type | Method and Description |
|---|---|
void |
validate(Site site,
Application application,
Environment environment,
Options options,
Request request,
FieldProcessor fieldProcessor)
This method validates the given
Request and eventually adds some Messages to the
FieldProcessor using one of its addErrorMessage()-methods. |
void validate(Site site, Application application, Environment environment, Options options, Request request, FieldProcessor fieldProcessor)
Request and eventually adds some Messages to the
FieldProcessor using one of its addErrorMessage()-methods.site - the current Siteapplication - the current Applicationenvironment - the current Environmentoptions - the Options for this DataProviderrequest - the current RequestfieldProcessor - the FieldProcessor containing all readable FieldDefinitions for the
DataProviderFieldProcessor.addErrorMessage(String),
FieldProcessor.addErrorMessage(FieldDef, String)Copyright © 2011–2022 aiticon GmbH. All rights reserved.