MyFaces Core
  1. MyFaces Core
  2. MYFACES-3008

javax.faces.component.UIInput.getConvertedValue converts empty String to null even when javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL is set as false

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.2, 2.0.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Glassfish v3, myfaces core 2.0.2

      Description

      javax.faces.component.UIInput.getConvertedValue converts empty String to null even when javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL is set as false.

      When I dug deeper I narrowed down the issue to the method org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUISelectOneValue where if the submitted value is an empty string the submittedvalue is set to null. I also understand that this logic was put in place to solve the issue no. 1759 for version 1.2.2 but in JSF 2.0 the empty string to null conversion is handled globally using context parameter javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL.

        Issue Links

          Activity

          Hide
          Leonardo Uribe added a comment -

          Mail sent to jsr344-experts list. The same behavior was found on both MyFaces and Mojarra. We have to wait until get some answer, because the objective of this param is to apply for textbox components.

          Show
          Leonardo Uribe added a comment - Mail sent to jsr344-experts list. The same behavior was found on both MyFaces and Mojarra. We have to wait until get some answer, because the objective of this param is to apply for textbox components.
          Hide
          mbm67 added a comment -

          The same problem seems to be present also in MyFaces 2.1.1.
          Need a patch as soon as possible.

          Show
          mbm67 added a comment - The same problem seems to be present also in MyFaces 2.1.1. Need a patch as soon as possible.

            People

            • Assignee:
              Unassigned
              Reporter:
              Jay Palaniappan
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development