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

        Tyler Johnson created issue -
        Tyler Johnson made changes -
        Field Original Value New Value
        Salesforce Case [5007000000C3MHf]
        Description The issue occurs when using a cc:selectOneMenuColumn within a cc:editableTable component. If you modify the selectOneMenuColumn and save the row, the resulting non editable table will display the key rather than the value of the selectItem. Please see attached screen shots and test case.



        The issue occurs when using a cc:selectOneMenuColumn within a cc:editableTable component. If you modify the selectOneMenuColumn and save the row, the resulting non editable table will display the key rather than the value of the selectItem. Please see attached screen shots and test case.
        Tyler Johnson made changes -
        Description The issue occurs when using a cc:selectOneMenuColumn within a cc:editableTable component. If you modify the selectOneMenuColumn and save the row, the resulting non editable table will display the key rather than the value of the selectItem. Please see attached screen shots and test case. 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.
        Tyler Johnson made changes -
        Attachment 9179_screen.jpg [ 12357 ]
        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.
        Tyler Johnson made changes -
        Attachment SC9179.war [ 12358 ]
        Ken Fyten made changes -
        Fix Version/s 1.8.2.GA_P02 [ 10225 ]
        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.
        Brad Kroeger made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: