flow
flow copied to clipboard
Improve Binder.setBean validation options
Describe your motivation
Currently when using setBean with Binder, bean validity is not guaranteed. This is because on field value change, only the changed binding is validated, and possible bean-level validators are run. If those are ok, the value is written to the bean. However, other fields may be in a state where validation would not pass, but they are ignored since the value has not been changed since setBean was called.
Describe the solution you'd like
Configurable options for how the validation should work. See discussion here for more details.