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

        Arran Mccullough created issue -
        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.
        Arran Mccullough made changes -
        Field Original Value New Value
        Attachment Case13636Example2.war [ 22018 ]
        Attachment Case13636Example2.zip [ 22019 ]
        Ken Fyten made changes -
        Assignee Arturo Zambrano [ artzambrano ]
        Fix Version/s EE-4.1.0.GA [ 12171 ]
        Fix Version/s EE-3.3.0.GA_P04 [ 12270 ]
        Priority Major [ 3 ] Minor [ 4 ]
        Ken Fyten made changes -
        Assignee Priority P2 [ 10011 ]
        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)
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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
        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.
        Liana Munroe made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        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
        Arturo Zambrano made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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.
        Ken Fyten made changes -
        Fix Version/s EE-4.1.0.BETA [ 13072 ]
        Ken Fyten made changes -
        Fix Version/s 4.2.BETA [ 13091 ]
        Fix Version/s 4.2 [ 12870 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: