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 ActionProvider
s 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 Message s 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 Message
s to the
FieldProcessor
using one of its addErrorMessage()
-methods.site
- the current Site
application
- the current Application
environment
- the current Environment
options
- the Options
for this DataProvider
request
- the current Request
fieldProcessor
- the FieldProcessor
containing all readable FieldDef
initions for the
DataProviderFieldProcessor.addErrorMessage(String)
,
FieldProcessor.addErrorMessage(FieldDef, String)
Copyright © 2011–2021 aiticon GmbH. All rights reserved.