org.mentawai.validation
Interface Validatable
public interface Validatable
An action should implement this interface if it wants to define its rules for validation.
Another approach would be to have a ValidationFilter separated from the Action to do this.
Some people would rather decouple the validation setup from the action. Other people would rather
put everything inside the same class. Mentawai offers the two approaches to let you decide for your own
which is the best for your need.
- Author:
- Sergio Oliveira
prepareValidator
void prepareValidator(Validator validator,
String innerAction)
- Prepares the validator, adding rules that should be applied to fields.
- Parameters:
validator - innerAction -
Copyright © 2011. All Rights Reserved.