-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
defaultNullable() is not respected by fields plugin #218
Comments
I think this is because, fields plugins doesnt consider validateable but uses the constrait evaluator directly. instead, it can check if the bean is validateable, thn instead of explicitly evaluating constraints, just call validateable.getConstraintsMap |
In |
I have just recently worked on the admin panel and it uses f:all to render the fields. The attributes that are marked as nullable:true is rendered to the display as required fields. |
respect defaultNullable() of Validateable classes (issue #218)
* master: If field validation error codes are unresolved and fallback to the defaultMessage on the error, this defaultMessage must be escaped due to the possibility of user input being in the error message. Fixes issue gpc#323. Update readme.md respect defaultNullable() of Validateable classes (issue gpc#218) fix warning "Accessing config through dot notation is deprecated" Added Action: Stale issues and pr's Back to snapshot Release 3.0.0.RC1 Use release versions of dependencies Update dependencies Bump up serverlet api version to 4.0.1 Bump up Groovy to 2.5.5 # Conflicts: # build.gradle # gradle.properties
I created a class implementing Validateable and have overridden the default nullable behavior with this code:
The fields plugin doesn't seem to respect this configuration, which results in all fields being required, instead of the opposite.
I am using Grails 3.1.x
The text was updated successfully, but these errors were encountered: