New request for PF datatable multiRowSelect

UI Components for JSF
Post Reply
yyq2009aa
Posts: 61
Joined: 18 Jun 2010, 21:39

24 May 2012, 11:13

PF showcase: http://www.primefaces.org/showcase-labs ... ltiple.jsf

When I click a row and the row is selected, and then I click another row to select it, it selected as expected, but the first selected row changes to unselected, that is not what I want. In my opinion, when click one row ,the row should be selected, and clicked another row will not affect selected rows, the only way to unselect row is click it once again.

Maybe that is a request for many user. Of course, ctrl and shift key multiple selection should works either.

Thanks.
PF 3.5
JSF 2.1 (Mojarra 2.1.19)
Glassfish 3.1.2
FF 3.6, IE 8, Chrome 25
Windows 7
NetBeans IDE 7.3

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

24 May 2012, 12:49

The behaviour now is like it is on almost all systems. Using ctrl- and shift-... the other behaviour is most likely not going to be implemented (no requests for it). But you are of course always allowed to modify the code...

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 May 2012, 13:19

Unlikely to be implemented as behavior is copied from file systems, excel and other ui tools.

yyq2009aa
Posts: 61
Joined: 18 Jun 2010, 21:39

27 May 2012, 08:46

optimus.prime wrote:Unlikely to be implemented as behavior is copied from file systems, excel and other ui tools.
Hi optimus.prime,
As a end-user, I think this behaviour should be implemented, that is user's habits.

to kukeltje
You said could modify the code, but I can't find any js code on row(tr) element or its parents element as I expected, I'm not familar with YUI, where can I find the js code and modify it?

Thanks in advance.
PF 3.5
JSF 2.1 (Mojarra 2.1.19)
Glassfish 3.1.2
FF 3.6, IE 8, Chrome 25
Windows 7
NetBeans IDE 7.3

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

27 May 2012, 09:17

Datatable.js in the source... And it is not you, but jquery...

yyq2009aa
Posts: 61
Joined: 18 Jun 2010, 21:39

27 May 2012, 16:21

kukeltje wrote:Datatable.js in the source... And it is not you, but jquery...
Hi kukeltje, thanks for your reply. I found the script behind the datatable html elements, and I saw all js events are bind dynamiclly. The script is not in datatable.js file, but in primefaces.js.jsf and a lot of ui's script is in it, so there is a little difficult to modify it, even so I'll have a try.
I use PF 3.3-snapshort, maybe you mean older versions.
Thanks again.
PF 3.5
JSF 2.1 (Mojarra 2.1.19)
Glassfish 3.1.2
FF 3.6, IE 8, Chrome 25
Windows 7
NetBeans IDE 7.3

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 45 guests