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

[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: Not a Bug
    • Icon: Major Major
    • None
    • 7.1.4.CR1, 7.1.5.CR2
    • JSF
    • None
    • Regression
    • 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.

      This is a regression of JBEAP-10242

      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
              jkasik@redhat.com Jan Kašík
              Daniel Cihak Daniel Cihak
              Daniel Cihak Daniel Cihak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: