Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8RC1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Any
Description
In rowSelector, it's still possible to select multiple rows when multiple=false if no selectionListener was registered
This means that if you have a rowSelector component declared just like this...
<ice:rowSelector id="rowselector" value="#{var.selected}" multiple="false" />
...you will still be able to select multiple rows.
To reproduce the issue, follow these steps:
1. Deploy component-showcase.
2. Navigate to the folder webapps\component-showcase\WEB-INF\includes\examples\custom
3. Open the file named 'dataTable-rowSelection.jspx'.
4. Around line 95, remove this attribute from the <ice:rowSelector /> tag:
selectionListener="#{rowSelectController.rowSelectionListener}"
5. On your browser, navigate to the component-showcase app and load the Row Selection example.
6. Try selecting a few rows and see how all of them stay selected
7. Restore the attribute deleted on step 4, and reload the page on the browser.
8. Now you can see that only one row can have selected state in the entire table.
This means that if you have a rowSelector component declared just like this...
<ice:rowSelector id="rowselector" value="#{var.selected}" multiple="false" />
...you will still be able to select multiple rows.
To reproduce the issue, follow these steps:
1. Deploy component-showcase.
2. Navigate to the folder webapps\component-showcase\WEB-INF\includes\examples\custom
3. Open the file named 'dataTable-rowSelection.jspx'.
4. Around line 95, remove this attribute from the <ice:rowSelector /> tag:
selectionListener="#{rowSelectController.rowSelectionListener}"
5. On your browser, navigate to the component-showcase app and load the Row Selection example.
6. Try selecting a few rows and see how all of them stay selected
7. Restore the attribute deleted on step 4, and reload the page on the browser.
8. Now you can see that only one row can have selected state in the entire table.
fixed it as part of
ICE-3591