Sorry!
 
Ignore this message, I didn't mean to send this older draft.
 
--Todd


From: Todd Patrick [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 15, 2006 3:47 PM
To: MyFaces Discussion
Subject: tree2: How would I automatically expand the tree once I dynamically populate a node with children?

Tree2 is working great.
 
A topic that I cannot find in the demo code or in the mail archive is how would I automatically expand the tree once I dynamically populate a node with children?
 
For example, I have the following tree:
 
|- A
|- B
|- C
 
I click on node B and that runs an ActionListener that populates the children for node B and I get the following:
 
|- A
+- B
|- C
 
I still have to click on the plus sign "+" to see the children after I dynamically loaded the children from a database.
 
What I would like to have happen when I click on node B that runs an ActionListener that populates the children for node B; the tree automatically expands and display the children:
 
|- A
|--B
|  |_ 1
|  |_ 2
|  |_ 3
|
|- C
 
Thoughts or suggestions are greatly appreciated.
 
Thanks,
 
--Todd
 

Reply via email to