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

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Summary deltaSubmit=true is causing conversion errors deltaSubmit=true is causing conversion errors on ace:comboBox
        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.
        Arran Mccullough made changes -
        Attachment Case12371Example2.war [ 16586 ]
        Attachment Case12371Example2.zip [ 16587 ]
        Arran Mccullough made changes -
        Salesforce Case Reference 5007000000VJ4JvAAL
        Ken Fyten made changes -
        Assignee Mircea Toma [ mircea.toma ]
        Fix Version/s 4.0 [ 10770 ]
        Fix Version/s EE-3.3.0.GA_P02 [ 11371 ]
        Assignee Priority P2 [ 10011 ]
        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
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #39044 Thu Nov 28 13:40:10 MST 2013 mircea.toma ICE-9698 Modified ComboBoxRenderer to write out the selected value into the hidden input element so that delta submit can correctly calculate the previous parameters off the old document.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/combobox/ComboBoxRenderer.java
        Ken Fyten made changes -
        Affects Version/s 4.0.BETA [ 10770 ]
        Affects Version/s EE-3.3.0.GA_P02 [ 11371 ]
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        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: