Uploaded image for project: 'JBoss Developer Materials'
  1. JBoss Developer Materials
  2. JDF-591

Form validation failures in kitchensink-angularjs are not reported correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • jdfsite-2.17.Final
    • quickstarts
    • None
    • Chrome 30 or Firefox 22.0 on Fedora 17

    • Hide

      1. Deploy and run the kitchensink-angularjs quickstart
      2. Enter an invalid email value. No error message is displayed after an value is input.
      3. Submit the form.
      4. The displayed error message for the email field reads "may not be null".
      5. Attempt to reset the form. The invalid email continues to be displayed.

      Show
      1. Deploy and run the kitchensink-angularjs quickstart 2. Enter an invalid email value. No error message is displayed after an value is input. 3. Submit the form. 4. The displayed error message for the email field reads "may not be null". 5. Attempt to reset the form. The invalid email continues to be displayed.

      If an invalid email is entered, sometimes the AngularJS quickstart allows the user to proceed to submit the form. The request sent by the client omits all invalid values since the model is not updated to include such values, resulting in misleading error messages reported to the user.

      Additionally, resetting the form fails to work correctly after such a form submission, and the invalid values continue to be displayed to the user.

              vineet.reynolds_jira Vineet Reynolds (Inactive)
              vineet.reynolds_jira Vineet Reynolds (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: