You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is Issue 42 moved from a Google Code project.
Added by 2011-04-18T07:42:50.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Defect, Priority-Medium
Original description
<b>What steps will reproduce the problem?</b>
1. if you defined a form validation the validate() function will always validate all fields
2. if you change the class="" of the fields that are invalid then all invalid fields classes are changed at once
<b>What is the expected output? What do you see instead?</b>
a new function "validateUntilFirstError" in com.pietschy.gwt.pectin.client.form.validation/FormValidator.java that validates the fields in the right order and stops at the first error
<b>What version of the product are you using? On what operating system?</b>
0.8
<b>Please provide any additional information below.</b>
can be solved by adding a sorted list of validators:
private ArrayList<HasValidation> sortedFieldValidators = new ArrayList<HasValidation>();
Instead o iterate over all validators in no specific order like in validate:
for (HasValidation validator : fieldValidators.values())
you could iterate over the sorted validators and stop when error occurs:
for (HasValidation validator : sortedFieldValidators)
The text was updated successfully, but these errors were encountered:
This is Issue 42 moved from a Google Code project.
Added by 2011-04-18T07:42:50.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Defect, Priority-Medium
Original description
The text was updated successfully, but these errors were encountered: