Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.5
-
Fix Version/s: 1.8.2
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Operating System: All
Platform: All
Description
If you use a dataTable with a dataPaginator, so that the table rows are split
over more than one page, and add a rowSelector with multipleSelection="false",
then it is possible to actually do multiple selection, as long as you're
selecting rows on different pages.
over more than one page, and add a rowSelector with multipleSelection="false",
then it is possible to actually do multiple selection, as long as you're
selecting rows on different pages.
Issue Links
- is duplicated by
-
ICE-2513 rowSelector: multiple=false still allows multiple selection
- Closed
There is workaround for this issue on the backing bean side. Assuming the usual code (table backed by a list, and the field 'selected' to indicate selection):
<pre>
public void onRowSelect( RowSelectorEvent e )
{ i.next().setSelected( false ); }{
// Clear all selections first
selectedObject = null;
for ( ListIterator<Type> i = myList.listIterator(); i.hasNext()
// Get the selected row from the event, and explicitly select it
{ rowObject.setSelected( true ); selectedObject = rowObject; }Type rowObject = myList.get( e.getRow() );
if ( e.isSelected() )
}
</pre>