If you look closely (or using a debugger) you can see that when you do: page.add(new MyPanel(...));
First the constructor is called, and only then the add method. At construction time the parent is not known yet. The example can be rewritten to make this more clear like: Panel p = new MyPanel(...); page.add(p); Martijn On 6/17/07, Thies Edeling <[EMAIL PROTECTED]> wrote: > I've got a panel extending the Panel class. When I add that panel to a > Page, getPage can't seem to the find the parent and throws me a > java.lang.IllegalStateException: No Page found for component > [MarkupContainer [Component id = projectOverviewPanel, page = <No Page>, > path = projectOverviewPanel.ProjectOverviewPanel]] > > I was assuming the Page was automatically set when the panel was added > or am I mistaken ? > > gr, > Thies > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user