i used the following example as a template: http://wicket.apache.org/learn/examples/markupinheritance.html
> With code like: > Page1 p1 = new Page1(node.toString()); > setResponsePage(p1); <-- is there an alternative to show Page1 without using setResponsePage? Am 26.05.2011 um 10:23 schrieb Martin Grigorov: > With code like: > Page1 p1 = new Page1(node.toString()); > setResponsePage(p1); <-- > > it is you who reloads the page. > > Load a page in a div ? How do you do that ? The only possible way is > to put an iframe in the div. > I guess you need a Panel instead of a Page and re-render it with : > target.addComponent(panel) > > On Thu, May 26, 2011 at 11:19 AM, hubert_hupe <hubert_h...@gmx.de> wrote: >> >> hi, >> >> i do not reload the page - or rather the page reloads itself. the page has >> two div areas in the markup and i load the target page into one div and the >> tree in the other. >> >> regards >> hubert >> >> Am 25.05.2011 um 20:51 schrieb James Carman: >> >>> 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 >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org