• Post Reply Bookmark Topic Watch Topic
  • New Topic

Selecting multiple nodes from <rich:tree>  RSS feed

 
zul' Zorander
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any body suggest a mechanism by which i can select multiple nodes from a rich tree and display all the selected rows. By default the tree allows one node to be selected at a time...

Thank You
 
zul' Zorander
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solved it by assigning a selectBooleancheckbox with each node of the tree and by setting the checkbox true on nodeclickevent.
On sucessive selections of nodes i need to dispaly all the selections. From nodeSelectListener i am storing the name of the node in array list and displaying it via a outputLabel. My doubt is the I had to keep the bean alive to have data of multiple selections because the arrayList is destroyed and recreated for every selection. Isnt ajax request asynchronous??? So shouldn't the bean should be alive for many ajax requests??? Please clarify this doubt.

Thanks
Zeddicus
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!