ICEfaces
  1. ICEfaces
  2. ICE-9473

ace:comboBox filter is applied to item value and not the label

    Details

    • Assignee Priority:
      P1
    • Salesforce Case Reference:

      Description

      When using the comboBox's listValue to populate the drop down, the filter searches based on the item value and not the label. This is obviously not intuitive for users. For example:

      <ace:comboBox listVar="department" listValue="#{testBean.departments}" itemValue="#{department.id}"
      filterMatchMode="contains">
      <f:facet name="row">
      <h:outputText value="#{department.name}" />
      </f:facet>
      <ace:ajax execute="@this" render="@all" />
      </ace:comboBox>

      renders:

      <span class="ui-combobox-item-label"><span id="iceForm:selectDepartment:0:_t7">Test 1</span></span>
      ........
      <span class="ui-combobox-item-value" style="visibility:hidden;display:none;">1</span></div>

      Typing in 'Test 1' does not return a matching value.

        Issue Links

          Activity

          Tyler Johnson created issue -
          Tyler Johnson made changes -
          Field Original Value New Value
          Salesforce Case Reference 5007000000UcWYeAAN
          Hide
          Deryk Sinotte added a comment -

          Assigning to Mark for re-assignment.

          Show
          Deryk Sinotte added a comment - Assigning to Mark for re-assignment.
          Deryk Sinotte made changes -
          Fix Version/s EE-3.3.0.GA_P01 [ 11174 ]
          Fix Version/s 3.4 [ 10770 ]
          Assignee Mark Collette [ mark.collette ]
          Affects Version/s 3.3 [ 10370 ]
          Assignee Priority P2 [ 10011 ]
          Component/s ACE-Components [ 10050 ]
          Mark Collette made changes -
          Assignee Mark Collette [ mark.collette ] Arturo Zambrano [ artzambrano ]
          Assignee Priority P2 [ 10011 ] P1 [ 10010 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #37327 Wed Aug 07 16:19:18 MDT 2013 art.zambrano ICE-9473 fixed issue with displaying wrong labels on first submit and when using filtering
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/combobox/combobox.js
          Hide
          Arturo Zambrano added a comment -

          This change was already made as part of ICE-9427. I verified that now the filtering/autocomplete functionality is based on labels and not on the values.

          I fixed an issue I detected while testing this. When using filtering, the wrong label was being shown in the text field after making a selection. This was because the generated list of results is usually different than the model list, and thus the indexes were different. Committed this fix to trunk at revision 37327 and to the p01 tag at revision 37328.

          Show
          Arturo Zambrano added a comment - This change was already made as part of ICE-9427 . I verified that now the filtering/autocomplete functionality is based on labels and not on the values. I fixed an issue I detected while testing this. When using filtering, the wrong label was being shown in the text field after making a selection. This was because the generated list of results is usually different than the model list, and thus the indexes were different. Committed this fix to trunk at revision 37327 and to the p01 tag at revision 37328.
          Arturo Zambrano made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Arturo Zambrano made changes -
          Link This issue depends on ICE-9427 [ ICE-9427 ]
          Ken Fyten made changes -
          Fix Version/s 4.0 [ 11382 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Arturo Zambrano
              Reporter:
              Tyler Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: