/** * installs the webjars resource finder and uses a set of default settings. * * @param app the wicket application */ public static void install(final WebApplication app) { install(app, null); }
/** * installs the webjars resource finder and uses a set of default settings. * * @param app the wicket application */ public static void install(final WebApplication app) { install(app, null); }
@Override public void init(Application application) { if (WicketWebjars.isInstalled(application) == false) { WicketWebjars.install((org.apache.wicket.protocol.http.WebApplication) application); } }
/** * Install 2 default collector instances: (FileAssetPathCollector(WEBJARS_PATH_PREFIX), JarAssetPathCollector), * and a webjars resource finder. * * <p> * Factored out for easy (informal) pluggability. * </p> */ protected void configureWebJars() { IWebjarsSettings settings = new WebjarsSettings(); WicketWebjars.install(this, settings); }
@Override protected void init() { super.init(); WicketWebjars.install(this); } });
@Override public void init(WebApplication webApplication) { WebjarsSettings settings = new WebjarsSettings(); WicketWebjars.install(webApplication, settings); wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass()) .withDetail("properties", props) .build()); }
@Override public void init(WebApplication webApplication) { WebjarsSettings settings = new WebjarsSettings(); WicketWebjars.install(webApplication, settings); wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass()) .withDetail("properties", props) .build()); }
@Test public void isInstalled() throws Exception { WebApplication application = tester.getApplication(); assertThat(WicketWebjars.isInstalled(application), is(false)); WicketWebjars.install(application); assertThat(WicketWebjars.isInstalled(application), is(true)); } }
protected void initBootstrap() { LessCompilerConfigurationFactory lessConfigFactory = () -> { Configuration lessConfig = new Configuration(); lessConfig.setCompressing( RuntimeConfigurationType.DEPLOYMENT.equals(getConfigurationType())); return lessConfig; }; WicketWebjars.install(this); BootstrapLess.install(this, lessConfigFactory); Bootstrap.install(this); IBootstrapSettings settings = Bootstrap.getSettings(this); settings.setCssResourceReference(CustomBootstrapLessReference.get()); }
protected void initBootstrap() { LessCompilerConfigurationFactory lessConfigFactory = () -> { Configuration lessConfig = new Configuration(); lessConfig.setCompressing( RuntimeConfigurationType.DEPLOYMENT.equals(getConfigurationType())); return lessConfig; }; WicketWebjars.install(this); BootstrapLess.install(this, lessConfigFactory); Bootstrap.install(this); IBootstrapSettings settings = Bootstrap.getSettings(this); settings.setCssResourceReference(CustomBootstrapLessReference.get()); }
WicketWebjars.install((WebApplication) app, webjarsSettings);
WicketWebjars.install(this, webjarSettings); mountPackage("org.orienteer.core.web"); mountPackage("org.orienteer.core.resource");