Manual selection of checkboxes in User Membership -> sitelist.jsp doesn't work

Description

1) Select All
2) Deselect All
3) Manually select any number
4) Use any of the actions
5) Nothing happens because the backing bean thinks nothing is selected.

The problem is that the value attribute isn't being updated on click of the actual checkbox. When the form is loaded for the first time, all the checkboxes have a value="true". The select all/deselect all/invert selection JavaScript functions update the checked and value attributes accordingly. So you deselect all, and all the checkboxes have value="false". Then you go and manually select any number, but their value attribute remains false. So when you go to perform any of the actions, the backing bean thinks that none of the items are selected.

Adding some simple JavaScript to the onclick of the checkboxes themselves to update the value attribute solves the issue.

Activity

Show:
Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created August 11, 2015 at 9:06 AM
Updated August 24, 2015 at 8:57 AM
Resolved August 22, 2015 at 7:51 AM

Flag notifications