ICEfaces
  1. ICEfaces
  2. ICE-1021

Fix dataTable, dataPaginator, single selection rowSelector

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Issue Links

          Activity

          Mark Collette created issue -
          Icefaces Administrator made changes -
          Field Original Value New Value
          issue.field.bugzillaimportkey 1041 12290
          Ken Fyten made changes -
          Assignee Rob Mayhew [ rob.mayhew ]
          Hide
          Alok Mittal added a comment -

          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 )
          {
          // Clear all selections first
          selectedObject = null;
          for ( ListIterator<Type> i = myList.listIterator(); i.hasNext()

          { i.next().setSelected( false ); }

          // Get the selected row from the event, and explicitly select it
          Type rowObject = myList.get( e.getRow() );
          if ( e.isSelected() )

          { rowObject.setSelected( true ); selectedObject = rowObject; }

          }

          </pre>

          Show
          Alok Mittal added a comment - 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 ) { // Clear all selections first selectedObject = null; for ( ListIterator<Type> i = myList.listIterator(); i.hasNext() { i.next().setSelected( false ); } // Get the selected row from the event, and explicitly select it Type rowObject = myList.get( e.getRow() ); if ( e.isSelected() ) { rowObject.setSelected( true ); selectedObject = rowObject; } } </pre>
          Philip Breau made changes -
          Link This issue is duplicated by ICE-2513 [ ICE-2513 ]
          Hide
          Ken Fyten added a comment -

          Assigned for retest.

          Show
          Ken Fyten added a comment - Assigned for retest.
          Ken Fyten made changes -
          Assignee Joanne Bai [ joanne_bai ]
          Hide
          Joanne Bai added a comment - - edited
          • Glimmer revision: 21299
            The data table in Row Selection of current compat showcase is single page, in which data paginator does not apply.
          • 1.8.2-EE-p01 revision 21302
            Row selector works properly with dataPaginator
            Tested with Tomcat6.0.26 + FF3.6 and IE8
          Show
          Joanne Bai added a comment - - edited Glimmer revision: 21299 The data table in Row Selection of current compat showcase is single page, in which data paginator does not apply. 1.8.2-EE-p01 revision 21302 Row selector works properly with dataPaginator Tested with Tomcat6.0.26 + FF3.6 and IE8
          Ken Fyten made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.8.2 [ 10190 ]
          Fix Version/s 2.0-Alpha3 [ 10032 ]
          Resolution Fixed [ 1 ]
          Assignee Joanne Bai [ joanne_bai ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Mark Collette
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: