ICEfaces
  1. ICEfaces
  2. ICE-10885

ace:selectMenu - Selection lost after changing list options

    Details

    • Assignee Priority:
      P2
    • Support Case References:
    • Workaround Exists:
      Yes
    • Workaround Description:
      The ace:simpleSelectOneMenu and h:selectOneMenu components do not suffer from this issue.

      Description

      In this scenario an ace:selectMenu is set to be able to change the backing list options on a click of a button. Initially the options are set with 10 items. On click of a button, these items are reduced to 5.

      The issue is that if an option is selected in the larger range (6-10) and the list is changed, the value is set to a blank option, not the first (1) as it is being set in the backing bean.

      If the reverse is performed, the first option is shown in the input field.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46971 Wed Jan 13 15:20:54 MST 2016 art.zambrano ICE-10885 added condition to update the selected index of the component when a value is set but the option item is not found (e.g. because the list was updated)
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/selectmenu/selectmenu.js

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: