Board index JavaServer Faces General multiselect shift on p:datatable

multiselect shift on p:datatable

Components, Ajax Framework, Utilities and More.


Posts: 1
since Version 2.2 the multiple selection of Rows with shift does not work any more.

I tried the 3.0-M2 Version an this issue is still not working.

Will this be fixed in future, or does a workaround exists to catch shift and ctrl keys when clicking a row in p:datatable


Posts: 15076
Location: Cybertron

No plans to add key support to datatable selection.
PrimeFaces Lead


Posts: 23
Location: San Jose
Do you suggest any work around this issue ?

I have started topic related with this issue

viewtopic.php?t=13190

Thanks.
Primeface 3.2 | Tomcat 7.0.21 | MyFaces 2.1.5 | Eclipse 3.7 | CentOs 5.6


Posts: 58
I am absolutely astounded by your decision to not support keyboard based modifiers for multiple row selection.

Who would have guessed that you wouldn't support, what has become the defacto standard for many many years for multiple row selection.

Your promotion of using checkboxes or radio buttons on each row to support selection takes one back to the dark ages of html.

We were finalizing our plans to move our commercial application from IceFaces to PrimeFaces.

Now, this is an absolute deal-killer.

I don't know what else to say - this was a bad decision for PrimeFaces - trouble is, most won't realize this fundamental capability is missing, until it's too late and they're in the middle of a Primefaces project about to create costly headaches.

Disappointed in PrimeFaces,
John
Primefaces: 4.0
Primefaces-extensions: 1.1.0
JSF: 2.2

Glassfish 4
Netbeans 7.3


Posts: 15076
Location: Cybertron

If you need this feature that much, you can subscribe to enterprise support and sponsor the development, also it depends on how many user votes this feature request gets.

We are not promoting other selection ways, we just provide them, you can choose which one to go with, key support is not vital for me. Our users never asked for it in our PrimeFaces powered apps.

I don't understand why you are disappointed just because of this optional feature.
PrimeFaces Lead

kukeltje Expert Member

Posts: 6510
Location: Netherlands
I agree with optimus. Prime Teknoloji develops and provide things you get for FREE. That is not always sufficient and sometimes if there are reasons to develop new stuff, existing things can be dropped. Personally, I like multiselect shift to, but would NEVER, EVER complain in a way you do. If it is realy that important, pay a few thousand euro and get it implemented via enterprise support.

Cheers,

Ronald
Ronald van Kuijk
______________________________
PrimeFaces 4.0, PrimeFaces plus 0.0.2 | Jboss 7.2.0 | Mojarra 2.1.18
Fedora 19, Firefox 26.0
Read the forum posting rules
Beginners: http://www.coreservlets.com/JSF-Tutorial/jsf2/

Oleg User avatar
Expert Member

Posts: 3713
Location: Russia, Siberia => Germany, Black Forest
I agree with Cagatay. Key support is not vital for me too. Yes, I have found this difference in comparison to YUI based table too, but it's okey for me. What is the difference whether you select rows by Click or Ctrl+Click? And checkboxes are still needed if you want to select / deselect ALL rows quickly ;) I'm happy with PF datatable. The best one I have ever seen.
PrimeFaces 4.x, 5.x, Mojarra 2.2.x, JBoss WildFly, WebSphere, Windows 8.1, IntelliJ IDEA
PrimeFaces Cookbook: http://ova2.github.com/primefaces-cookbook/ PrimeFaces Extensions on GitHub: http://primefaces-extensions.github.com/

kukeltje Expert Member

Posts: 6510
Location: Netherlands
What is the difference whether you select rows by Click or Ctrl+Click?


For selecting there is no difference (besides the 'expectation' of users). But for unselecting there is. Try doing that at once with a click, if a click is 'add-to-already-selected-or-deselect-this-one-if-selected'. When you select with a ctrl-click, a normal click is an unselect of all others and only select the one that is clicked on. That is what many people expect today because of common experience in other user-interfaces (being it web or non-web based). I'm not complaing (in fact, I'm even looking into how to extend this in PF datatable), I'm just describing what some people reported here (I'm looking into migrating a Flex based ui to PF)

And checkboxes are still needed if you want to select / deselect ALL rows quickly


Nope Oleg, if you have shift-click, you can select the first one with a normal click, and the last one with a shift-click, so checkboxes are not needed then :-)
Ronald van Kuijk
______________________________
PrimeFaces 4.0, PrimeFaces plus 0.0.2 | Jboss 7.2.0 | Mojarra 2.1.18
Fedora 19, Firefox 26.0
Read the forum posting rules
Beginners: http://www.coreservlets.com/JSF-Tutorial/jsf2/

Oleg User avatar
Expert Member

Posts: 3713
Location: Russia, Siberia => Germany, Black Forest
Hi kukeltje,

Good reason! I agree 100%. This would be nice to have in PrimeFaces too (shift-, ctrl-integration). In the fact we can't use PF datatable without this feature in our important apps. ;)
PrimeFaces 4.x, 5.x, Mojarra 2.2.x, JBoss WildFly, WebSphere, Windows 8.1, IntelliJ IDEA
PrimeFaces Cookbook: http://ova2.github.com/primefaces-cookbook/ PrimeFaces Extensions on GitHub: http://primefaces-extensions.github.com/

Oleg User avatar
Expert Member

Posts: 3713
Location: Russia, Siberia => Germany, Black Forest
Requiments from our customers (summary):

1) Easy and quick select of all rows
2) Easy and quick deselect of all rows
3) Single and multi selection on the same table (ctrl-, shift- support or what I shown in the neighbor post).
PrimeFaces 4.x, 5.x, Mojarra 2.2.x, JBoss WildFly, WebSphere, Windows 8.1, IntelliJ IDEA
PrimeFaces Cookbook: http://ova2.github.com/primefaces-cookbook/ PrimeFaces Extensions on GitHub: http://primefaces-extensions.github.com/

Next

Return to General