• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Are you here to take over the surface world? Because this tiny ad will stop you!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic