ICEfaces-EE
  1. ICEfaces-EE
  2. IPCK-94

selectOneMenuColumn value becomes key when saved within editableTable

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.8.2.GA_P01
    • Fix Version/s: 1.8.2.GA_P02
    • Component/s: Facelet Components
    • Labels:
      None
    • Environment:
      -

      Description

      The issue occurs when using a cc:selectOneMenuColumn within a cc:editableTable component, the editableTable displays the key property instead of the value from the selectItem pair. Please see attached screen shots and test case.

        Activity

        Hide
        Tyler Johnson added a comment -

        Test case intended for deployment on tomcat 6. In order to upload, I've removed the icefaces, icefaces-comps, icefaces-facelets, and composite-component jars.

        Show
        Tyler Johnson added a comment - Test case intended for deployment on tomcat 6. In order to upload, I've removed the icefaces, icefaces-comps, icefaces-facelets, and composite-component jars.
        Hide
        Brad Kroeger added a comment -

        The SelectItem api has a number of constructors. If you pass in one argument, that becomes both the value and label, you can also pass in a value followed by a label (which is usually done when the bean value is something other than a String and you want a String label in the GUI). In the attached jpg, the SelectItem value is what you have labeled as "key" and the SelectItem label is what has been labeled "Value". The construction of the SelectItems bound to the ice-cc:selectOneMenuColumn is up to the developer to decide what should be a value and label.

        When the component renders out the value of the ice:outputText in a cell, it is using the ice:selectOneMenuColumn "property" attribute. If the "property" in the backing bean List bound to the ice-cc:editableTable component is not a String then you will not see a String in the GUI.

        Show
        Brad Kroeger added a comment - The SelectItem api has a number of constructors. If you pass in one argument, that becomes both the value and label, you can also pass in a value followed by a label (which is usually done when the bean value is something other than a String and you want a String label in the GUI). In the attached jpg, the SelectItem value is what you have labeled as "key" and the SelectItem label is what has been labeled "Value". The construction of the SelectItems bound to the ice-cc:selectOneMenuColumn is up to the developer to decide what should be a value and label. When the component renders out the value of the ice:outputText in a cell, it is using the ice:selectOneMenuColumn "property" attribute. If the "property" in the backing bean List bound to the ice-cc:editableTable component is not a String then you will not see a String in the GUI.

          People

          • Assignee:
            Brad Kroeger
            Reporter:
            Tyler Johnson
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: