datatable multiple select puzzlement

UI Components for JSF
Post Reply
ethermion
Posts: 117
Joined: 25 Aug 2010, 15:11

03 Nov 2010, 02:12

If in a datatable with multiple selection, how to select them all? A plain single click acts like CTRL-click, and shift click does weird things with selection on the screen.

I basically want the user to be able to do a select all. CTRL-A is no good. Click on 1st row, shift-click on last row is no good.

I've tried on the showcase with IE8, FF3.6, Chrome 7.

Clues?
Mojarra 2.2.8
Primefaces 5.1
Wildfly 8.2

callahan
Posts: 768
Joined: 27 May 2010, 22:52

03 Nov 2010, 02:26

It does say the following at the top of the page:
Multiple selection is achieved by using modifier keys such as ctrl.
http://www.primefaces.org/showcase/ui/d ... ltiple.jsf

However, this appears to be a left over from the old 2.1 DataTable. This isn't supported in the new DataTable (yet?).

Perhaps you can achieve what you want with checkbox selection: http://www.primefaces.org/showcase/ui/d ... eckbox.jsf.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests