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
Field error binding should not be hardcoded #3
Comments
It sounds good. there are three ways:
you need 2 and 3, don't you? |
These behave as same as before, binding the default field error with hard-coded message code:
You can specified a parameter "defaultErrorBinding" with false to avoid binding default field error:
How about it? |
It is great! But can you also add configuration parameter to specify default behavior in Config.groovy? It will be setted to "true" by default (for backward compatibility) and used if parameter defaultErrorBinding in onConflict() handler is omitted. |
It seems good to be able to specify default value in Config.groovy. okay, I'll try it. |
I implemented that on a feature branch. Could you confirm the sample code as test cases? If you like it, I'll merged it to master branch. |
The test cases are correct for my request. Thank you for this work! I am waiting for it to update my project. |
Merged into master. v0.4 will be released asap. Thank you! |
v0.4 released. enjoy! |
Field error handler binds error to 'version' field of domain class in any case. I have some problems with i18n of error message, because I can not use i18n label for domain class. Also I can not use custom error message code or message for specific domain. In some cases error binding to version field is not needed, when specific handler is used.
I offer to add a config option to disable this behavior if needed, or disable it when onConflict handler is being used.
The text was updated successfully, but these errors were encountered: