I have read that "in Wicket a page is only constructed once", from
https://cwiki.apache.org/WICKET/reading-from-a-database.html

So I did an experiment with the following class.  When I press F5
twice in my browser to refresh, and I get the print out (see below)
three times.  So, is the statement "in Wicket a page is only
constructed once" correct?

public class Echo extends WebPage {

        public Echo() {
                System.out.println(this.toString());
        }

}

Print out:

[Page class = org.appfuse.web.pages.echo.Echo, id = 0, version = 0]
[Page class = org.appfuse.web.pages.echo.Echo, id = 1, version = 0]
[Page class = org.appfuse.web.pages.echo.Echo, id = 2, version = 0]

Thank you

-- 
Simon
西门烧雪

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to