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

        Hide
        Arran Mccullough added a comment -

        Attached test case to reproduce the issue.

        Steps:

        • Load welcomeICEfaces.jsf
        • In the selectMenu drop down select a value from 6 to 10.
        • Click the "Toggle List Size" button.
        • The selectMenu input is shown as blank, even though the first option is being set in the bean.
        • Use the drop down the select a new value.
        • Click the "Toggle List Size" button again, this time the first option remains in the drop down field.
        Show
        Arran Mccullough added a comment - Attached test case to reproduce the issue. Steps: Load welcomeICEfaces.jsf In the selectMenu drop down select a value from 6 to 10. Click the "Toggle List Size" button. The selectMenu input is shown as blank, even though the first option is being set in the bean. Use the drop down the select a new value. Click the "Toggle List Size" button again, this time the first option remains in the drop down field.
        Hide
        Arturo Zambrano added a comment -

        r46971: 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)

        Show
        Arturo Zambrano added a comment - r46971: 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)
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces 4 trunk r46973, Tomcat 8, FF 43, Chrome 47, IE 11, 10, 9, 8.
        Fix still needs to be applied to EE-3.3.0 maintenance branch.

        Show
        Liana Munroe added a comment - Verified ICEfaces 4 trunk r46973, Tomcat 8, FF 43, Chrome 47, IE 11, 10, 9, 8. Fix still needs to be applied to EE-3.3.0 maintenance branch.
        Hide
        Arturo Zambrano added a comment -

        r46976: applied fix to the EE 3.3 maintenance branch

        Show
        Arturo Zambrano added a comment - r46976: applied fix to the EE 3.3 maintenance branch
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces 4 trunk r46976, Tomcat 8, FF 43, Chrome 47, IE 11, 10, 9, 8, 7.

        Show
        Liana Munroe added a comment - Verified ICEfaces 4 trunk r46976, Tomcat 8, FF 43, Chrome 47, IE 11, 10, 9, 8, 7.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: