Yes, as per the API for the component class: http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/Component.html#setResponsePage(java.lang.Class) setResponsePage
public final <C extends IRequestablePage> void setResponsePage(Class<C> cls) Sets the page that will respond to this request Type Parameters: C - Parameters: cls - The response page class See Also: RequestCycle.setResponsePage(Class) setResponsePage public final <C extends IRequestablePage> void setResponsePage(Class<C> cls, PageParameters parameters) Sets the page class and its parameters that will respond to this request Type Parameters: C - Parameters: cls - The response page class parameters - The parameters for this bookmarkable page. See Also: RequestCycle.setResponsePage(Class, PageParameters) setResponsePage public final void setResponsePage(Page page) Sets the page that will respond to this request Parameters: page - The response page See Also: RequestCycle.setResponsePage(org.apache.wicket.request.component.IRequestablePage) To run this through a simple unit test you would run: WicketTester#AssertRenderedPage() http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/util/tester/WicketTester.html#assertRenderedPage(java.lang.Class) WicketTester#AssertResultPage() http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/util/tester/WicketTester.html#assertResultPage(java.lang.Class,%20java.lang.String) ~ Thank you, Paul C Bors On Feb 8, 2013, at 1:00, snair <sreelatha.n...@transport.wa.gov.au> wrote: > Is it ok to call the same page using setResponsePage(), only calling a > different constructor, since the page now needs to display additional > information, which I will be passing into this new constructor? For > example, from PageA, can I say setResponsePage(new PageA(String a)) when a > submit button button is clicked. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/call-the-same-page-using-setResponsePage-tp4656192.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org >