Ajax unselect not working in p:tree

UI Components for JSF
Post Reply
Tunaki
Posts: 13
Joined: 12 Aug 2011, 15:55

08 Dec 2011, 17:12

Hello,

I ran into an issue when using the unselect event of p:tree. This also happens in the showcase : http://www.primefaces.org/showcase-labs ... Events.jsf. If you select any node, you can not unselect it, even with

Code: Select all

<p:ajax event="unselect" update=":form:messages" listener="#{treeBean.onNodeUnselect}" />
Primefaces 3.0.M3
Mojarra 2.1.3
Tomcat 7.0.22

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

08 Dec 2011, 17:21

Could you create an issue? It also does not work for me.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Tunaki
Posts: 13
Joined: 12 Aug 2011, 15:55

08 Dec 2011, 17:42

Primefaces 3.0.M3
Mojarra 2.1.3
Tomcat 7.0.22

callahan
Posts: 768
Joined: 27 May 2010, 22:52

08 Dec 2011, 22:12

ctrl + left click unselects for me in Firefox 8.

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

08 Dec 2011, 22:13

I set the issue as invalid, you need to press metakey, same behavior you can find in OS filesystems.

Generally in PrimeFaces, things are unselected when metakey(ctrl for win, cmd for mac, not sure for linux) is on.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

27 Dec 2011, 12:11

By the way, a note to the last comment. What would you expect if you push ctrl + double click on aready selected tree node in PrimeFaces. Unselect is fired and tree node stays selected (highlighted). What would you expect if you push ctrl + double click on aready selected tree node in OS filesystem? Tree node gets unselected (unhighlighted). So, you are mostly right Cagatay, but generally the select / unselect behavior is different in comparison to OS. ;) That's okey. Web != Desktop.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests