p:tree - unselect

UI Components for JSF
Post Reply
Matrium
Posts: 112
Joined: 16 May 2011, 08:27

21 Sep 2011, 12:31

hi,

I use p:tree as some sort of "navigation-menu" and i have 2 questsion about the new tree implementation:

a) it seems like i can't "unselect" a node which was possible with 2.2.1. So if i click a node which is already selected i want it to be unselected. is this possible with 3.x?

b) is it possible to disable selection completely? (if a node is selected i still use the select event, but the node should not be highlighted). of course i could change the style so that the selected nood looks the same as a normal node, but i still can't use the node again without clicking something else (because of a) )

any suggestions?

thanks in advance
PrimeFaces (Elite) 4.0.13, Majorra 2.1.28, Tomcat 7.0.53
Testing with Firefox, Chrome and IE9+IE10
<3 Primefaces!!!

Matrium
Posts: 112
Joined: 16 May 2011, 08:27

22 Sep 2011, 00:12

do you know what i mean? (sorry for my bad english)

i could really use some advice..
PrimeFaces (Elite) 4.0.13, Majorra 2.1.28, Tomcat 7.0.53
Testing with Firefox, Chrome and IE9+IE10
<3 Primefaces!!!

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

22 Sep 2011, 09:25

Yes, we know what you mean :-) And you are right, tree in 2.2.1 was better in my opinion too. It seems tree in labs doesn't have selection at all. Gone by accident or a bug?
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

Matrium
Posts: 112
Joined: 16 May 2011, 08:27

22 Sep 2011, 11:50

thanks for your answer

i really like the appearence of the new tree and it works great so far, but i really miss the unselection-ability.

maybe i can do some javascript hack?
PrimeFaces (Elite) 4.0.13, Majorra 2.1.28, Tomcat 7.0.53
Testing with Firefox, Chrome and IE9+IE10
<3 Primefaces!!!

Matrium
Posts: 112
Joined: 16 May 2011, 08:27

29 Sep 2011, 00:05

any idea how to do this? (unselect treenode on selection, so the same node can be selected again without selecting another node)
PrimeFaces (Elite) 4.0.13, Majorra 2.1.28, Tomcat 7.0.53
Testing with Firefox, Chrome and IE9+IE10
<3 Primefaces!!!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 48 guests