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

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

Introduction

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

Prototype

public final Class<? extends Page> getPageClass() 

Source Link

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");
    }/*from w  w  w .  j a  va  2 s  .com*/
    page.setResponsePage(page.getPageClass(), pageParameters);
}