Example usage for org.apache.wicket.request.mapper.parameter PageParameters overwriteWith

List of usage examples for org.apache.wicket.request.mapper.parameter PageParameters overwriteWith

Introduction

In this page you can find the example usage for org.apache.wicket.request.mapper.parameter PageParameters overwriteWith.

Prototype

public PageParameters overwriteWith(final PageParameters other) 

Source Link

Document

Copy the page parameters

Usage

From source file:org.xaloon.wicket.plugin.blog.panel.AbstractBlogPluginPanel.java

License:Apache License

@Override
protected PageParameters cleanupPageRequestParameters(PageParameters pageRequestParameters) {
    PageParameters result = new PageParameters();

    for (String key : AVAILABLE_PARAMETERS) {
        if (!pageRequestParameters.get(key).isEmpty()) {
            result.add(key, pageRequestParameters.get(key));
        }/*  w w  w.j  av  a2 s .  c  om*/
    }
    return pageRequestParameters.overwriteWith(result);
}