[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:
Relates
relates to MGNLUI-6946 DOC: Review custom complex field exam... Closed
causality
relation
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
I want to see all invalid fields name or a button to jump to next error field
More info TBD.

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
If possible lets not forgot the composites, multies, switchables, etc.



 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:

Generated at Mon Feb 12 09:31:37 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.