ICEfaces
  1. ICEfaces
  2. ICE-9203

ace:selectMenu and ace:comboBox, add support for values of any type

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EE-3.3.0.GA, 4.0.BETA, 4.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Any

      Description

      As of the 3.3 release, ace:selectMenu and ace:comboBox only support String values in its option items and in the component value itself, producing class cast exceptions when trying to use other object types. These components should support any type of object.

        Activity

        Arturo Zambrano created issue -
        Arturo Zambrano made changes -
        Field Original Value New Value
        Assignee Arturo Zambrano [ artzambrano ]
        Mark Collette made changes -
        Fix Version/s 3.4 [ 10770 ]
        Mark Collette made changes -
        Assignee Priority P2 [ 10011 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #34592 Mon Apr 29 19:14:44 MDT 2013 art.zambrano ICE-9203 fix to support any object type as the value in ace:selectMenu and ace:comboBox
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/combobox/ComboBoxRenderer.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/selectmenu/SelectMenu.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/selectmenu/SelectMenuRenderer.java
        Hide
        Arturo Zambrano added a comment -

        Committed fix at revision 34592.

        Since, the code for ace:selectMenu and ace:comboBox was based on the ace:autoCompleteEntry code, all values were assumed to be strings. As selection components, it makes sense that ace:selectMenu and ace:comboBox support other types of objects. So, a fix to support any object type was added to these components, by modifying how the option values are handled, by modifying how the component value itself is handled, and by modifying the way the values are validated.

        Show
        Arturo Zambrano added a comment - Committed fix at revision 34592. Since, the code for ace:selectMenu and ace:comboBox was based on the ace:autoCompleteEntry code, all values were assumed to be strings. As selection components, it makes sense that ace:selectMenu and ace:comboBox support other types of objects. So, a fix to support any object type was added to these components, by modifying how the option values are handled, by modifying how the component value itself is handled, and by modifying the way the values are validated.
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Arturo Zambrano made changes -
        Component/s ACE-Components [ 10050 ]
        Arturo Zambrano made changes -
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Arturo Zambrano made changes -
        Arturo Zambrano made changes -
        Summary ace:selectMenu, add support for different value types ace:selectMenu and ace:comboBox, add support for different value types
        Arturo Zambrano made changes -
        Description As of the 3.3 release, ace:selectMenu only supports String values in its select items and produces an exception when trying to use other types. The component should support any type of object as a select item value. As of the 3.3 release, ace:selectMenu and ace:comboBox only support String values in its option items and in the component value itself, producing class cast exceptions when trying to use other object types. These components should support any type of object.
        Ken Fyten made changes -
        Fix Version/s EE-3.3.0.GA [ 10572 ]
        Ken Fyten made changes -
        Summary ace:selectMenu and ace:comboBox, add support for different value types ace:selectMenu and ace:comboBox, add support for values of any type
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arturo Zambrano
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: