Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0.BETA
-
Fix Version/s: 4.1
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Tomcat 7
Description
I created an array of SelectItem objects and bound it to the ace:autoCompleteEntry component like this:
<ace:autoCompleteEntry value="#{navigationModel.searchValue}"
valueChangeListener="#{navigationController.navigate}"
placeholder="Search"
filterMatchMode="contains"
width="180">
<f:selectItems value="#{navigationModel.currentComponentGroup.searchSelectItems}"/>
</ace:autoCompleteEntry>
The event in the ValueChangeListener is returning the selected label as the new value, instead of the value used in creating the SelectItem object.
The showcase uses a SelectItem constructor with a single parameter, the label that is used for label and value. We need it to work with the SelectItem constructors that also pass in a separate value.
<ace:autoCompleteEntry value="#{navigationModel.searchValue}"
valueChangeListener="#{navigationController.navigate}"
placeholder="Search"
filterMatchMode="contains"
width="180">
<f:selectItems value="#{navigationModel.currentComponentGroup.searchSelectItems}"/>
</ace:autoCompleteEntry>
The event in the ValueChangeListener is returning the selected label as the new value, instead of the value used in creating the SelectItem object.
The showcase uses a SelectItem constructor with a single parameter, the label that is used for label and value. We need it to work with the SelectItem constructors that also pass in a separate value.
Activity
Brad Kroeger
created issue -
Brad Kroeger
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Ken Fyten [ ken.fyten ] |
Ken Fyten
made changes -
Assignee | Ken Fyten [ ken.fyten ] | Arturo Zambrano [ artzambrano ] |
Fix Version/s | 4.0 [ 11382 ] | |
Assignee Priority | P1 [ 10010 ] |
Ken Fyten
made changes -
Fix Version/s | 4.1 [ 11375 ] | |
Fix Version/s | 4.0 [ 11382 ] |
Ken Fyten
made changes -
Assignee Priority | P1 [ 10010 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #45805 | Wed Jul 29 17:29:38 MDT 2015 | art.zambrano | |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/autocompleteentry/autocompleteentry.js
MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/autocompleteentry/AutoCompleteEntryRenderer.java |
Arturo Zambrano
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Carmen Cristurean
made changes -
Attachment | Capture.PNG [ 20690 ] |
Carmen Cristurean
made changes -
Attachment | Capture.PNG [ 20690 ] |
Carmen Cristurean
made changes -
Attachment | Capture.PNG [ 20691 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #45816 | Tue Aug 04 11:23:41 MDT 2015 | art.zambrano | |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/autocompleteentry/autocompleteentry.js
|
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
I have committed the searchform to the showcase. It's at the top of the menu in showcase.xhtml.
Put a break point in navigationController.navigate and you should see the valuechangelistener event using the label instead of the value (in the navigate method, replace navigate(null,event.getNewValue().toString()); with navigate(null,null) first because the labels all have a ':' in them which is throwing an exception)