[MGNLUI-5947] Form level validation Created: 10/Jun/20 Updated: 07/Dec/21 Resolved: 07/Dec/21 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | dialogs |
| Affects Version/s: | 6.2.10 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Neutral |
| Reporter: | Šimon Demočko | Assignee: | Unassigned |
| Resolution: | Not an issue | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Template: |
|
||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||
| Release notes required: |
Yes
|
||||||||||||||||
| Documentation update required: |
Yes
|
||||||||||||||||
| Date of First Response: | |||||||||||||||||
| Epic Link: | formLevelValidation | ||||||||||||||||
| Sprint: | UI FW 37 | ||||||||||||||||
| Story Points: | 8 | ||||||||||||||||
| Description |
|
I want to be able to add validation for one field based on input in another field Investigate if vaadin's bean level validation can be used (which would be datasource specific, e.g. validation would run on not yet saved JCR node). Notes |
| Comments |
| Comment by Roman Kovařík [ 11/Nov/21 ] |
|
Although there is a PoC for java bean validation API, it's not true that complex/form level validation is not supported: Every (complex)form has configurable implementationClass. _B_y extending the default impls is possible to override validate() method (but also populate() and write()) to meet your needs. There are examples (not yet published to docu) how to do this. |
| Comment by Roman Kovařík [ 07/Dec/21 ] |
|
There is an API for form level validation, some docu examples: |