List of usage examples for org.apache.wicket.protocol.http WebApplication getJavaScriptLibrarySettings
public final JavaScriptLibrarySettings getJavaScriptLibrarySettings()
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))); }