Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2892

INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL applies for String only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2-SNAPSHOT
    • 2.0.2
    • JSR-252
    • None
    • myfaces trunk

    Description

      11.1.3 Application Configuration Parameters:
      If the javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL context parameter value is
      true (ignoring case), and UIInput.getSubmittedValue() returns a zero-length String call
      UIInput.setSubmittedValue(null) and continue processing using null as the current submitted value

      Currently UIInput.validate applies it to every type of submittedValue, not only for String. If I use custom non-String submmited value with toString().length()=0 UIInput.validate turns it into null.

      Attachments

        1. MYFACES-2892.patch
          0.8 kB
          Martin Kočí

        Activity

          People

            matzew Matthias Wessendorf
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: