Example usage for org.apache.wicket.markup.html WebPage setResponsePage

List of usage examples for org.apache.wicket.markup.html WebPage setResponsePage

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html WebPage setResponsePage.

Prototype

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

Source Link

Document

Sets the page class and its parameters that will respond to this request

Usage

From source file:com.evolveum.midpoint.web.util.NewWindowNotifyingBehavior.java

License:Apache License

@Override
protected void onNewWindow(AjaxRequestTarget target) {
    LOG.debug("Page version already used in different tab, refreshing page");
    WebPage page = (WebPage) getComponent();
    //fix for MID-4649; windowName parameter causes recursive reloading of the page
    PageParameters pageParameters = page.getPageParameters();
    if (pageParameters != null && pageParameters.getPosition("windowName") > -1) {
        pageParameters = pageParameters.remove("windowName");
    }// www .ja  va  2s  .  c  o m
    page.setResponsePage(page.getPageClass(), pageParameters);
}