-
New Feature
-
Resolution: Fixed
-
Normal
-
Freshly
-
6.0.1-FL-2012041222
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 (problem is not platform specific)
This feature request is based on discussion in ZK-863.
If you use form binding and validation only on form level and not on component level, it could happen that the form validator create multiple validation error messages.
If you use the ZK5 error popup by binding to component's errorMessage attribute, you will get multiple error popups (which is desired).
The problem is that editing all erroneous input fields won't make the popups go away since the validation is only done on form level, e.g. by pressing the submit button and not by the onChange event of each input field (like ZK5 constraints work).
To illustrate the problem, just try the attached sample:
- open page
- do NOT edit any input fields, but press immediately "Save" button
- all input fields show an error popup
Now try to edit the input fields to fix the validation problems.
For an "end user" it is almost impossible to get out of this situation.
How can this be solved? Frankly, I do not have an answer.
One way could be to trigger the form validation also on editing of single fields. This would make the popups disappear - one after each other.
But maybe you have a better idea.