For the page, the fact that it takes a Panel is encapsulated. Only /which/ panel can be determined from the outside.
I think this is a nice usecase that we should think through...
Martijn
On 1/17/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
On 1/17/06, Martijn Dashorst <[EMAIL PROTECTED] > wrote:
I can't give a Panel instance as a parameter to a Page constructor anymore in the new setup. Was this already thought of? For instance:
Panel panel = new BarPanel(someSpecialModel);
Page foo = new FooPage(panel);
setResponsePage(page);
you have it backwards. you pass in the parent not the child.
Page foo=new FooPage();
new BarPanel(foo, "id");
setResponsePage(foo);
-Igor
--
Living a wicket life...
Martijn Dashorst - http://www.jroller.com/page/dashorst
Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1