I want to manually validate field in command object
I know I can get field’s max value (and min) with this:
MyDomain.constraints.myField.getAppliedConstraint('max').maxValue
How can I execute ‘validate’ command on ‘myField’ and get errors object ?
Have a look at the grails docs.
You could use the
validate()method on a defined list of properties: