Example usage for org.apache.wicket.request Url addQueryParameter

List of usage examples for org.apache.wicket.request Url addQueryParameter

Introduction

In this page you can find the example usage for org.apache.wicket.request Url addQueryParameter.

Prototype

public void addQueryParameter(final String name, final Object value) 

Source Link

Document

Convenience method that removes adds a query parameter with given name

Usage

From source file:org.brixcms.web.util.PathLabel.java

License:Apache License

private CharSequence createCallbackUrl(String subpath) {
    Url url = Url.parse(urlFor(ILinkListener.INTERFACE).toString());
    url.addQueryParameter("path", subpath);
    return url.toString(getRequest().getCharset());
}

From source file:org.jabylon.rest.ui.wicket.components.UserImagePanel.java

License:Open Source License

private ResourceReference getImageUrl(IModel<User> model) {
    String email = getEMail(model);
    if (email == null)
        email = model.getObject().toString();
    Url url = Url.parse(GRAVATAR_BASE_URL + MD5Util.md5Hex(normalize(email)));
    url.addQueryParameter("size", size);
    url.addQueryParameter("d", "wavatar");
    return new UrlResourceReference(url);

}