Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8
-
Fix Version/s: 1.8.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:XP, Tomcat
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
When using enhancedMultiple="true", just the last selected row will be found in RowSelectorEvent.selectedRows when using CTRL+MouseButton. Due to method signature and documentation, all selected rows are expected.
- Part of xhtml:
<ice:rowSelector value="#{item.selected}" multiple="true" enhancedMultiple="true"
selectionListener="#{simpleTableBean.rowSelectionListener}"/>
- Part of Bean:
public void rowSelectionListener(RowSelectorEvent event) {
...
}
Please note: The enhanced selection itself works as considered, but the event doesn't transport this information.
- Part of xhtml:
<ice:rowSelector value="#{item.selected}" multiple="true" enhancedMultiple="true"
selectionListener="#{simpleTableBean.rowSelectionListener}"/>
- Part of Bean:
public void rowSelectionListener(RowSelectorEvent event) {
...
}
Please note: The enhanced selection itself works as considered, but the event doesn't transport this information.
This is a documentation issue, the event is behaving as intended. Only those rows selected as part of the context of a particular selection event are included in the event itself. You need to refer to the table model to see the total select row state.
We will improve the JavaDoc for the selection event to make this clear.