Datatable lazy loading multiple selection

UI Components for JSF
Post Reply
vea
Posts: 29
Joined: 12 Oct 2013, 06:27
Location: Netherlands

24 Aug 2014, 19:41

Is there any way to have a datatable with lazy loading, paging or livescroll and multiple selection.
It seems like whenever a new page is selected or scrolled to the selection array is cleared, so is it possible to do multiple selection over more than one page ?

Thanks in advance,
Arco van der Velden
Thanks in advance,
Arco
Using primefaces 5.1

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

25 Aug 2014, 14:37

You can do this by using checkbox selection.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now

vea
Posts: 29
Joined: 12 Oct 2013, 06:27
Location: Netherlands

26 Aug 2014, 11:53

andyba wrote:You can do this by using checkbox selection.
Just checkbox selection and everything is fine or do I need some more ?
Thanks in advance,
Arco
Using primefaces 5.1

vea
Posts: 29
Joined: 12 Oct 2013, 06:27
Location: Netherlands

30 Aug 2014, 08:50

andyba wrote:You can do this by using checkbox selection.
Tried it with <p:column selectionMode="multiple" /> but that doesn't work either...
Thanks in advance,
Arco
Using primefaces 5.1

sapre7
Posts: 7
Joined: 11 Dec 2014, 22:41
Location: USA

11 Dec 2014, 22:50

Having similar issues while trying a combination of LazyDataModel + livescroll +selectionMode="multiple".

The issue I have is when I deselect the header checkbox in the datatable. load method is automatically called with pagesize value taken from rows attribute. All the previously loaded data is gone.

Selecting the header checkbox works fine, but why deselecting the checkbox is calling the load method? :roll:

Any advice in this regard is greatly appreciated.

--------------------------
PrimeFaces 5.0
Java 7
PrimeFaces 5.0
MyFaces-bundle-2.1.15
Java 7
Tomcat v 8.0

sapre7
Posts: 7
Joined: 11 Dec 2014, 22:41
Location: USA

08 Jan 2015, 22:49

Problem mentioned above in my comments is now fixed. See link below.


http://forum.primefaces.org/viewtopic.p ... 1&p=128801
PrimeFaces 5.0
MyFaces-bundle-2.1.15
Java 7
Tomcat v 8.0


falcon.
Posts: 2
Joined: 25 Jul 2021, 11:02

26 Jul 2021, 10:42

mmm i has a similar issue.

you can try too using the datatable propertys:
selection="#{myManager.mySeletedObjectList}"
rowSelectMode="add"

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: ajvillafuerte and 26 guests