I saw that there are two ways to set responsePage in Wicket WebPage:
setResponsePage(new MyPage());
or
setResponsePage(MyPage.class);
What is the difference between the two?
The first will redirect the bookmark URL.
See also Frequently Asked Questions about the newsletter .
Wicket doc is best:
"setResponsePage ( MyWebPage()) ( setResponsePage ( MyWebPage (myPageParameters))) , URL- ( PageParameter). setResponsePage (MyWebPage.class) , . URL ( URL-).
, .setResponsePage( WebPage (p1, p2, p3)) .setResponsePage(WebPage.class) .
.setResponsePage(WebPage.class)
, .setResponsePage([WebPage.class]) 2 URL-, WicketApplication, - :
.setResponsePage([WebPage.class])
WicketApplication
public void init() { this.mountPage("/myPage", **WebPage.class**) }