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
Author

Select All option in rich:datatable

rashmi coorg
Greenhorn

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: http://stackoverflow.com/questions/3942060/select-all-checkbox-in-jsf-without-using-javascript
http://seamframework.org/Community/HowToWriteJavaScriptInXHTML


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

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



[]'s
 
I agree. Here's the link: http://aspose.com/file-tools
 
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