flow icon indicating copy to clipboard operation
flow copied to clipboard

Improve Binder.setBean validation options

Open tepi opened this issue 1 year ago • 0 comments

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.

tepi avatar Mar 06 '24 12:03 tepi