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

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: