Example usage for org.apache.wicket Page setResponsePage

List of usage examples for org.apache.wicket Page setResponsePage

Introduction

In this page you can find the example usage for org.apache.wicket Page setResponsePage.

Prototype

public final <C extends IRequestablePage> void setResponsePage(final Class<C> cls) 

Source Link

Document

Sets the page that will respond to this request

Usage

From source file:com.userweave.pages.api.LoginRegisterPanel.java

License:Open Source License

protected static void stopInterception(Page page) {
    // throw back responsibility to AuthorizationStrategy
    if (!page.continueToOriginalDestination()) {
        page.setResponsePage(page.getApplication().getHomePage());
    }//from  w w  w.  j  a v  a  2  s . com
}