File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes selectManyCheckbox in dataTable returns only the last selected item rather the whole list. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "selectManyCheckbox in dataTable returns only the last selected item rather the whole list." Watch "selectManyCheckbox in dataTable returns only the last selected item rather the whole list." New topic
Author

selectManyCheckbox in dataTable returns only the last selected item rather the whole list.

Anh Tu
Greenhorn

Joined: Oct 06, 2010
Posts: 1
Hello All,

I am facing this issue for many days and can figure out how.
I need to process a large dataset (e.g. > 50K of files.) And to stop crashing when displaying a large list, I am trying to create the paging to display only 100 items per page. So I am using the <h:selectManyCheckbox> inside the <h:dataTable> and two issues with this:
1) The paging doesn't display, e.g. NEXT|PREVIOUS| 1,2,3...
2) When hit Submit, it only returns the last seleted item but not the whole list of selected items.

Here is my managed-bean



The JSP page



If I remove the dataTable tag then all the selected items are returned correctly. If I have dataTable tag around the selectManyCheckbox then those two issues above happen. Please some one advice me.
Appreciate,
Anh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: selectManyCheckbox in dataTable returns only the last selected item rather the whole list.
 
Similar Threads
jsf:datatable with selectManyCheckbox problem
selectManyCheckBox within a panelgrid?
selectManyCheckbox
Checked SelectManyCheckbox Values are not written to Backingbean Property
can't get selectManyCheckbox values