I have a LinkTree where each node contains links to pages, and each of these
pages derives from the same base class, so they all contain that LinkTree. 
When a user drills down into the tree on one page and then clicks a link for
another page, I'd like the new page we go to to open the tree to its state
in the last page.

I can save the TreeState to the session and retrieve it in the new page, but
that's not the problem.

Right now, in the new page, the new tree displays collapsed.  When you leave
your constructor, only the topmost tree node has been constructed.  The node
I want to drill down to isn't created until you click on a junction link.

I could have designed this where the application has only one URL and only
the right-hand panel changes as you click through AjaxLinks -- and I had
that working with a minimum of trouble, but then I learned I have a
requirement that each "view" of the system -- i.e., where the right-hand
panel shows different content -- must correspond to a bookmarkable link. 
This requirement also eliminates the option of using frames wherein the
navigation tree stays the same and the part that's supposed to change, the
right-hand panel, is the target of the links.

So how do I open up my tree when I get to the new page?

Thanks for your help.


-- 
View this message in context: 
http://www.nabble.com/Setting-TreeState-in-new-page-tp21996538p21996538.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to