ICEfaces
  1. ICEfaces
  2. ICE-9698

deltaSubmit=true is causing conversion errors on ace:comboBox

    Details

    • Assignee Priority:
      P2
    • Salesforce Case Reference:
    • Workaround Exists:
      Yes
    • Workaround Description:
      Set deltaSubmit=false (Default)

      Description

      The test scenario is that an ace:comboBox is using an enum object for the list/value binding. There is also a button on the page that will open an ace:dialog. With the deltaSubmit context parameter set to true, opening the dialog via the button is causing a converter error:

      javax.faces.convert.ConverterException: Report: : '' must be convertible to an enum.
      at javax.faces.convert.EnumConverter.getAsString(EnumConverter.java:216)
      at org.icefaces.ace.component.combobox.ComboBoxRenderer.getConvertedValueForClient(ComboBoxRenderer.java:478)
      at org.icefaces.ace.component.combobox.ComboBoxRenderer.encodeScript(ComboBoxRenderer.java:259)
      at org.icefaces.ace.component.combobox.ComboBoxRenderer.encodeBegin(ComboBoxRenderer.java:175)

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case that reproduces the issue. Note: icefaces.jar, icefaces-ace.jar and icefaces-compat.jar files need to be added back into the war to deploy correctly.

        Steps:

        • Load welcomeICEfaces.jsf
        • The comboBox value changed without any issues.
        • Upon click of the 'show dialog' button the error is thrown.
        Show
        Arran Mccullough added a comment - Attached test case that reproduces the issue. Note: icefaces.jar, icefaces-ace.jar and icefaces-compat.jar files need to be added back into the war to deploy correctly. Steps: Load welcomeICEfaces.jsf The comboBox value changed without any issues. Upon click of the 'show dialog' button the error is thrown.
        Hide
        Mircea Toma added a comment -

        Modified ComboBoxRenderer to write out the selected value into the hidden input element (into the value attribute, more precisely) so that delta submit can correctly calculate the previous parameters off the old document. Previously

        Show
        Mircea Toma added a comment - Modified ComboBoxRenderer to write out the selected value into the hidden input element (into the value attribute, more precisely) so that delta submit can correctly calculate the previous parameters off the old document. Previously
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces EE-3.3.0.GA_P03 tag r44641. Tomcat 7, IE 11, FF 34, Chrome 42.

        Show
        Liana Munroe added a comment - Verified ICEfaces EE-3.3.0.GA_P03 tag r44641. Tomcat 7, IE 11, FF 34, Chrome 42.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: