I would use an iframe instead of doing this, or I would use panels instead of pages. But you may want to look at the code of ModalWindow in wicket extensions since it is capable of doing what you want, i.e. displaying the content of a page within a <div>.



Zenberg Ding wrote:
Hi, How can let a page render to a panel component, then I can avoid page inherited and whole page refresh to build my pages layout.

Think about this :

<html>
<body>
<span wicket:id="navigator"/>
<span wicket:id="content"/>
</body>
</html>

onNavNodeClicked(AjaxRequestTarget target) {
MyPage page = new MyPage(...);
Component component = getPage().get("content");
((Panel)component).setRenderPage(page); // this method is what i wanted.
target.add(component); //my page's cotent rendered
}

----
so, is there any way to reach this?

Thanks.

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




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

Reply via email to