you are probably doing something in panel2's constructor that ties to access the page. the page is not yet available in the constructor, it is only available once all add() calls succeede. a refactor in 1.3 will fix this.

for now try not to access the page in the constructor of the panels.

-Igor


On 4/2/06, R.A < [EMAIL PROTECTED]> wrote:

Hi.

I create 2 nested panel classes in a page.

public class TestPage extends WebPage {
        ...
        private class Panel1 extends Panel {
                public Panel1 {
                        ...
                        add(new Panel2());
                }

                private class Panel2 extends Panel {
                        public Panel2 {
                                super("panel2");
                        }
                }
        }
}

And I create TestPage.html, TestPage$Panel1.html and
TestPage$Panel1$Panel2.html.
Access to the Panel1 is succeeded, but access to the Panel2 is failed.

The exception is,
java.lang.IllegalStateException : No Page found for component
[MarkupContainer [Component id = panel2, page = <No Page>, path =
panel2.TestPage$Panel1$Panel2]]

Is panels addition to panels wrong?

Thank you.
R.A
--
View this message in context: http://www.nabble.com/panels-addition-to-panels-t1384873.html#a3719620
Sent from the Wicket - User forum at Nabble.com.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to