Java – SetResponsePage in Wicket

javawebpagewicket

I saw that there are two ways to set a responsePage in Wicket's WebPage:

 setResponsePage(new MyPage());

or

 setResponsePage(MyPage.class);

What are the differences between these two?

Best Answer

The first one will redirect to a bookmarkable URL.

Please see also the Wicket FAQ.