Disable Grails Scaffolding Validation for one Class -
we use grails scaffolding our internal part of our web app. have requirement modify values in before validate method. problem is, these fields blank: false or nullable: true
it's no problem modify these values in beforevalidate method, problem is, scaffolding adds required attribute html form, , can't submit these empty fields.
is there way disable scaffolding validation on specific view specific class?
greetings
the short answer "no, there isn't way turn of validation specific domain class in scaffolding."
however, can generate views domain class , edit gsps remove required attributes on fields in question.
grails generate-views com.somewhere.mydomainclass
scaffolding starting point work from, not continued use , customization.
Comments
Post a Comment