[MGNLUI-1574] In Dam detail view the asset (uploaded content) has to be mandatory Created: 06/Jun/13  Updated: 14/Jun/13  Resolved: 11/Jun/13

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.0
Fix Version/s: 5.0

Type: Task Priority: Major
Reporter: Eric Hechinger Assignee: Aleksandr Pchelintcev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Sprint: RC 1

 Description   

Upload Field has to support the property required.

An UploadField required has to show an error message when it's empty and don't allow to save the form.



 Comments   
Comment by Eric Hechinger [ 06/Jun/13 ]

Override is not sufficient.
If you perform a save without an Uploaded file, you get the error messages (correct).
Now if you upload a file the main (form) error message is gone (isValid() was called) but the field error message stay (getErrorMessage not called).
If a save is perform, this is correctly stored

Comment by Aleksandr Pchelintcev [ 08/Jun/13 ]

The issue is fixed, but the fact that upload field does not exactly follow the Vaadin Field contract is alarming (e.g. the value of the field is never set or read).

Generated at Mon Feb 12 08:47:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.