Having the following commandobjects in Grails:
class commandA implements commandObjectType {
String a
static constraints = {
a blank: false
}
}
and
class commandB extends commandA {
String b
}
How would one the implement custom field validation on b in the commandB object? It is to my knowledge not possible to override or in other ways change a closure..
Can this be done in anyway? I have tried "shifting" in a closure, without succes.. Is it possible to specify validators in-line with the fields in any way?