Runs a function that does validations - errors are designated by either:
- having the closure/passed function return None
- Or having the Some(List[Tuple2[String,String]]) have an empty list
Validation failure runs the onValidationErrors function and terminates processing of the request.
Runs a function that does validations - errors are designated by either:
- having the closure/passed function return None
- Or having the Some(List[Tuple2[String,String]]) have an empty list
Validation failure runs the onValidationErrors function and terminates processing of the request.
List should be in the format of key -> message, ie key of property that failed validation and message to be shown to client.
The varargs are there to give the validation error handling cycle a hint on which objects may have validation errors and so that state can be retained in forms on validation errors.
trait to use to enable the validate(mybean){} validation block