This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Similar Threads
The selected checkbox should be checked
Check Box in JTable header
maintin checkbox stauts during paginatin(dispalytag)
How do I maintain the state of checkboxes across page?
Checkbox values across multiple pages