How are you getting back to the original page?

On Wed, May 25, 2011 at 11:09 AM, hubert_hupe <hubert_h...@gmx.de> wrote:
> hi folks,
>
> i get wicket with the wicket...
> what do i have is a simple tree in page X. after click a node i do a redirect 
> to pageY. so far so good. but the tree
> collapsed after the redirect. it seems the tree is rebuild after the click. 
> its a kind of postback behavior.
> my question is: what can i do to prevent collapsing the tree? if this is not 
> possible, how can i open the old node? or how can i prevent the 
> "reloading/postbacking"?
>
> best regards
> hubert
>
> add(new LinkTree("tree", createTreeModel()) {
> @Override
> protected void onNodeLinkClicked(Object node, BaseTree tree, 
> AjaxRequestTarget target) {
>   System.out.println("test");
>   System.out.println("node: " + node.toString());
>   Page1 p1 = new Page1(node.toString());
>
>   setResponsePage(p1); <--
>
>  }
> });
>
> protected TreeModel createTreeModel() {
>        DefaultMutableTreeNode root = new DefaultMutableTreeNode(new 
> ModelBean("ROOT"));
> ...
> }
>
> i created a simple layout with div in the markup to ensure that the tree is 
> on the left site and the navigated page on the right...
>
> <div id="leftframe" style="float: left;  ">
> ...     wicket:id="tree"...
> </div>
> <div id="body">
>        <wicket:child />
> </div>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to