You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a domain with a transient attribute. I can not pass a value for the attribute when doing a show so that the validation passes. So, the show returns a validation error. I have added a default value for the attribute that solves the problem. However, I am wondering why the show method is validating the requested object.
The text was updated successfully, but these errors were encountered:
I have a domain with a transient attribute. I can not pass a value for the attribute when doing a show so that the validation passes.
If you mean that when you pass a value that it doesn't appear to be participating in data binding, that would likely be because transient properties are by default excluded from data binding. You can alter that in your constraints block by configuring the property like someTransientProperty bindable: true.
However, I am wondering why the show method is validating the requested object.
There are any number of reasons that might be happening. Without seeing your show action is it hard to say for sure what is causing it. If your show action accepts the instance as a method parameter, then the Grails automatically validates the instance before passing it into your controller action.
I have a domain with a transient attribute. I can not pass a value for the attribute when doing a show so that the validation passes. So, the show returns a validation error. I have added a default value for the attribute that solves the problem. However, I am wondering why the show method is validating the requested object.
The text was updated successfully, but these errors were encountered: