Details
-
Type: Bug
-
Status: Closed
-
Priority: 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
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Brad Kroeger
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Invalid [ 6 ] |
Ken Fyten
made changes -
Fix Version/s | 1.8.2.GA_P02 [ 10225 ] |
Tyler Johnson
made changes -
Attachment | SC9179.war [ 12358 ] |
Tyler Johnson
made changes -
Attachment | 9179_screen.jpg [ 12357 ] |
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 -
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
created issue -
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.