dataTable: selectionMode="multiple" retrieve on same row click

UI Components for JSF
Post Reply
oveb
Posts: 23
Joined: 20 May 2022, 14:06

12 Jul 2023, 09:49

Hi,
I'm using PF 12 and two dataTables (Parent - child). If the parent has multiselect selectionMode, the child is retrieved for every consecutive click on the same parent row. I can also see the same behaviour
if I'm only using a single dataTable with selectionMode="multiple". The rowSelect event is triggered if clicking on the same row (same behaviour as clicking on different rows in the table). If I set selectionMode="single"
on the dataTable the event is not sendt when clicking on the same row. The expected behavior is that the child retrieval should be triggered only when the parent row changes. Is this how it should be?

Regards,
Oveb

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

12 Jul 2023, 14:08

Not sure. You could create a PrimeFaces Test reproducer showing the issue and report it as a possible defect. I am not sure what the "correct" behavior is supposed to be?

See: https://github.com/primefaces/primefaces-test
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

oveb
Posts: 23
Joined: 20 May 2022, 14:06

12 Jul 2023, 14:37

Yeah, I'm not sure either. But I suppose it should be the same for both single and multiple selectionMode. I can create a reproducer.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests