I've looked in those places. In the WIKI, there is information about lazy loading, but nothing you described.
Thanks, --Todd -----Original Message----- From: Andrew Robinson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 15, 2006 4:53 PM To: MyFaces Discussion Subject: Re: Automatically expand a tree once I dynamically populate a node with children? call your model's state and expand the path manually. The expanded state is a list of node indexes. so in this case, you need to make sure path "1" is expanded for node 'B' Check the WIKI and this mailing list's archives for more discussions on dynamic tree loading and manually expanding/collapsing nodes. -Andrew PS - would give you references, but really busy at the moment, sorry On 6/15/06, Todd Patrick <[EMAIL PROTECTED]> wrote: > > > 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 > >