File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Select All option in rich:datatable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Select All option in rich:datatable" Watch "Select All option in rich:datatable" New topic

Select All option in rich:datatable

rashmi coorg

Joined: Jul 11, 2011
Posts: 19
i have a richfaces datatable, where in i will be displaying values in multiple pages with 15 rows per page. i need to include a 'select all' option as the first column in the table.
when the user selects the 'select all' option, all the checkboxes in that particular page should be selected. But the way i have implemented, i am getting all the checkboxes getting selected
including the rows of other pages also. How can this be avoided? Suggestions please..
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Maybe this will help:

[] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Marcos Vidolin

Joined: May 10, 2011
Posts: 28
I usually use that snippet code:

I agree. Here's the link:
subject: Select All option in rich:datatable
It's not a secret anymore!