ICEfaces
  1. ICEfaces
  2. ICE-9711

ace:comboBox - ConverterException: '' must be convertible to an enum

    Details

    • Assignee Priority:
      P1
    • Salesforce Case Reference:

      Description

      When using an enum object with the ace:comboBox and use labelPosition="inField", a ConverterException is thrown.

      javax.faces.convert.ConverterException: Combo Box: : '' must be convertible to an enum.
          at javax.faces.convert.EnumConverter.getAsString(EnumConverter.java:219)
          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)
          at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:822)
          ...

        Activity

        Arran Mccullough created issue -
        Hide
        Arran Mccullough added a comment -

        Attached test case source code that reproduces the issue.

        Show
        Arran Mccullough added a comment - Attached test case source code that reproduces the issue.
        Arran Mccullough made changes -
        Field Original Value New Value
        Attachment Case12371Example2.zip [ 16598 ]
        Arran Mccullough made changes -
        Salesforce Case Reference 5007000000VJ4JvAAL
        Ken Fyten made changes -
        Assignee Arturo Zambrano [ artzambrano ]
        Fix Version/s 4.0 [ 10770 ]
        Fix Version/s EE-3.3.0.GA_P02 [ 11371 ]
        Affects Version/s 4.0 [ 10770 ]
        Assignee Priority P1 [ 10010 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #39050 Thu Nov 28 15:02:51 MST 2013 art.zambrano ICE-9711 added special case handling for enum converter and the empty string
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/selectmenu/SelectMenuRenderer.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/simpleselectonemenu/SimpleSelectOneMenuRenderer.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/combobox/ComboBoxMeta.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/autocompleteentry/AutoCompleteEntryRenderer.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/combobox/ComboBoxRenderer.java
        Hide
        Arturo Zambrano added a comment -

        Committed fix to 4.0 trunk at revision 39050 and to 3.3 EE branch at revision 39051. Added special case handling of empty string values when using the enum converter.

        Show
        Arturo Zambrano added a comment - Committed fix to 4.0 trunk at revision 39050 and to 3.3 EE branch at revision 39051. Added special case handling of empty string values when using the enum converter.
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: