Example usage for org.apache.wicket.protocol.http WebApplication getJavaScriptLibrarySettings

List of usage examples for org.apache.wicket.protocol.http WebApplication getJavaScriptLibrarySettings

Introduction

In this page you can find the example usage for org.apache.wicket.protocol.http WebApplication getJavaScriptLibrarySettings.

Prototype

public final JavaScriptLibrarySettings getJavaScriptLibrarySettings() 

Source Link

Usage

From source file:de.alpharogroup.wicket.base.util.application.ApplicationExtensions.java

License:Apache License

/**
 * Replace the default jquery resource reference from the given application with the given cdn
 * url./*from  w  ww . j a  va  2s . com*/
 *
 * @param application
 *            the WebApplication
 * @param cdnjsUrl
 *            the given cdn url.
 */
public static void replaceJQueryReference(final WebApplication application, final String cdnjsUrl) {
    application.getJavaScriptLibrarySettings()
            .setJQueryReference(new UrlResourceReference(Url.parse(cdnjsUrl)));
}

From source file:org.jaulp.wicket.base.util.application.ApplicationUtils.java

License:Apache License

/**
 * Replace the default jquery resource reference from the given application with the given cdn
 * url./* ww  w  .j  a va  2  s.c  o m*/
 * 
 * @param application
 *            the WebApplication
 * @param cdnjsUrl
 *            the given cdn url.
 */
public static void replaceJQueryReference(WebApplication application, String cdnjsUrl) {
    application.getJavaScriptLibrarySettings()
            .setJQueryReference(new UrlResourceReference(Url.parse(cdnjsUrl)));
}