Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.3.0.GA
-
Fix Version/s: EE-3.3.0.GA_P01, 4.0.BETA, 4.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All
-
Assignee Priority:P1
-
Salesforce Case Reference:
-
Workaround Exists:Yes
-
Workaround Description:
Description
If an ace:selectMenu is displayed with only one item in the list and this item is pre-selected on the server side, the item isn't displayed as selected in the field.
This isn't an issue if the backing list has many items.
This isn't an issue if the backing list has many items.
Activity
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Fix Version/s | 4.0 [ 11382 ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #37416 | Wed Aug 14 16:16:56 MDT 2013 | art.zambrano | |
| Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/selectmenu/selectmenu.js
|
| Assignee | Arturo Zambrano [ artzambrano ] | |
| Fix Version/s | EE-3.3.0.GA_P01 [ 11174 ] | |
| Fix Version/s | 3.4 [ 10770 ] | |
| Assignee Priority | P1 [ 10010 ] |
| Workaround Description |
Adding in a blank item so that there are more than 1 item in the list/selectItems will allow it to be shown as selected. For example:
<ace:selectMenu id="workaroundMenu" value="#{testBean.singleValue}" label="One Item:" labelPosition="left"> <f:selectItem itemLabel="First Item" itemValue="1"/> <f:selectItem itemLabel="" itemValue="" itemDisabled="true"/> </ace:selectMenu> |
|
| Workaround Exists | Yes [ 10007 ] |
| Attachment | selectMenu-one-item-issue.jpg [ 16282 ] |
| Attachment | Case12338Example.war [ 16280 ] | |
| Attachment | Case12338Example.zip [ 16281 ] |
| Field | Original Value | New Value |
|---|---|---|
| Salesforce Case Reference | 5007000000VGpb4AAD |

Committed fix to trunk at revision 37416 and to p01 tag at revision 37417.
Fixed off-by-one error when going through the list of options for matching them against the set value.