Page 1 of 1

Ajax unselect not working in p:tree

Posted: 08 Dec 2011, 17:12
by Tunaki
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}" />

Re: Ajax unselect not working in p:tree

Posted: 08 Dec 2011, 17:21
by tandraschko
Could you create an issue? It also does not work for me.

Re: Ajax unselect not working in p:tree

Posted: 08 Dec 2011, 17:42
by Tunaki

Re: Ajax unselect not working in p:tree

Posted: 08 Dec 2011, 22:12
by callahan
ctrl + left click unselects for me in Firefox 8.

Re: Ajax unselect not working in p:tree

Posted: 08 Dec 2011, 22:13
by cagatay.civici
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.

Re: Ajax unselect not working in p:tree

Posted: 27 Dec 2011, 12:11
by Oleg
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.