If you need this form model to use validation rules that are specific to a given context (such as a specific form), then you will need to call {@link #setValidator(Validator)} with a validator configured with therequired context id. Like this: RulesValidator validator = myValidatingFormModel.getValidator(); validator.setRulesContextId( "mySpecialFormId" );
Along with this you will need to register your rules using the context id. See {@link DefaultRulesSource#addRules(String,org.springframework.rules.Rules)}.
@author Keith Donald
@author Oliver Hutchison
|
|
|
|
|
|
|
|
|
|
|
|
|
|