Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-10242

[GSS](7.1.z) JAVASERVERFACES_SPEC_PUBLIC-671 The old model value is redisplayed on @NotNull validation error with INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL=true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.2.CR1, 7.1.2.GA
    • 7.1.0.DR16
    • JSF
    • None
    • Hide

      0. Deploy the attached reproduce and access http://localhost:8080/test/
      1. Input any value to 'User ID' field. Leave 'Password' field blank. Then click 'Login' button.
      2. You will see a validation error message for password. And the input value for 'User ID' is restored. This is a correct behavior
      3. Remove the previous value in 'User ID' field and leave it blank. Input any value to 'Password' field. Then click 'Login' button.
      4. You will see a validation error message for user id. And the input value in step 1 is restored again in the field. This should be blank.

      Show
      0. Deploy the attached reproduce and access http://localhost:8080/test/ 1. Input any value to 'User ID' field. Leave 'Password' field blank. Then click 'Login' button. 2. You will see a validation error message for password. And the input value for 'User ID' is restored. This is a correct behavior 3. Remove the previous value in 'User ID' field and leave it blank. Input any value to 'Password' field. Then click 'Login' button. 4. You will see a validation error message for user id. And the input value in step 1 is restored again in the field. This should be blank.

      When setting javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL to true, the old (or initial) model value is redisplayed on @NotNull validation error instead of the submitted value.

      A required submitted value, which is afterwards removed and re-submitted, should not reappear.

      This issue is reported in JAVASERVERFACES_SPEC_PUBLIC-671 and it's fixed in the revision 0813ee1fdef418e47ef03ced7d57a1abe4c2bf54. Please backport this to JBoss mojarra.

            dtikhomi@redhat.com Dmitrii Tikhomirov
            rhn-support-mmiura Masafumi Miura
            Daniel Cihak Daniel Cihak
            Daniel Cihak Daniel Cihak
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: