Open OlliTietavainenVaadin opened 5 years ago
What does "submission" mean in this context? Would it be enough that there would be a way of extracting a raw value out from the form regardless of whether validation passes?
What does "submission" mean in this context?
In Binder
terms, that would be writeBean
.
Would it be enough that there would be a way of extracting a raw value out from the form regardless of whether validation passes?
That's one half of it. The other half would be being able to put that raw value programmatically back into the form without triggering a validation exception.
Use case: I want to make a form that can be saved temporarily ("interrupt save") before the final submission. This means that I want to turn off the validation temporarily so that even invalid data can be submitted. Once the user is ready to submit, it should be possible to re-enable the form's validation.