List of usage examples for org.apache.wicket Application getDebugSettings
public final DebugSettings getDebugSettings()
From source file:de.alpharogroup.wicket.base.util.application.ApplicationExtensions.java
License:Apache License
/** * Sets the debug settings for development mode for the given application. * * @param application/*w w w .jav a 2 s.c o m*/ * the new debug settings for development */ public static void setDebugSettingsForDevelopment(final Application application) { application.getDebugSettings().setComponentUseCheck(true); application.getDebugSettings().setOutputMarkupContainerClassName(true); application.getDebugSettings().setLinePreciseReportingOnAddComponentEnabled(true); application.getDebugSettings().setLinePreciseReportingOnNewComponentEnabled(true); application.getDebugSettings().setAjaxDebugModeEnabled(true); application.getDebugSettings().setDevelopmentUtilitiesEnabled(true); }
From source file:de.alpharogroup.wicket.base.util.application.ApplicationExtensions.java
License:Apache License
/** * Sets the deployment settings for deployment mode for the given application. * * @param application/*from ww w .java 2 s.c o m*/ * the application to set the settings */ public static void setDeploymentModeConfiguration(final Application application) { application.getMarkupSettings().setStripComments(true); // The resources are never polled. This are properties, html, // css, js files. application.getResourceSettings().setResourcePollFrequency(null); application.getResourceSettings().setJavaScriptCompressor(new DefaultJavaScriptCompressor()); // set the behavior if an missing resource is found... application.getResourceSettings().setThrowExceptionOnMissingResource(false); // debug settings... application.getDebugSettings().setComponentUseCheck(false); application.getDebugSettings().setAjaxDebugModeEnabled(false); application.getDebugSettings().setDevelopmentUtilitiesEnabled(false); application.getDebugSettings().setOutputMarkupContainerClassName(false); application.getDebugSettings().setLinePreciseReportingOnAddComponentEnabled(false); application.getDebugSettings().setLinePreciseReportingOnNewComponentEnabled(false); }
From source file:org.jaulp.wicket.base.util.application.ApplicationUtils.java
License:Apache License
/** * Sets the debug settings for development mode for the given application. * * @param application/*from ww w. j a va 2 s.co m*/ * the new debug settings for development */ public static void setDebugSettingsForDevelopment(final Application application) { application.getDebugSettings().setComponentUseCheck(true); application.getDebugSettings().setOutputMarkupContainerClassName(true); application.getDebugSettings().setLinePreciseReportingOnAddComponentEnabled(true); application.getDebugSettings().setLinePreciseReportingOnNewComponentEnabled(true); application.getDebugSettings().setAjaxDebugModeEnabled(true); application.getDebugSettings().setDevelopmentUtilitiesEnabled(true); application.getDebugSettings().setOutputComponentPath(true); }
From source file:org.jaulp.wicket.base.util.application.ApplicationUtils.java
License:Apache License
/** * Sets the debug settings for deployment mode for the given application. * * @param application/*from ww w.j ava 2 s . c om*/ * the application to set the settings */ public static void setDeploymentModeConfiguration(final Application application) { application.getMarkupSettings().setStripComments(true); // The resources are never polled. This are properties, html, // css, js files. application.getResourceSettings().setResourcePollFrequency(null); application.getResourceSettings().setJavaScriptCompressor(new DefaultJavaScriptCompressor()); // set the behavior if an missing resource is found... application.getResourceSettings().setThrowExceptionOnMissingResource(false); // debug settings... application.getDebugSettings().setComponentUseCheck(false); application.getDebugSettings().setAjaxDebugModeEnabled(false); application.getDebugSettings().setDevelopmentUtilitiesEnabled(false); application.getDebugSettings().setOutputComponentPath(false); application.getDebugSettings().setOutputMarkupContainerClassName(false); application.getDebugSettings().setLinePreciseReportingOnAddComponentEnabled(false); application.getDebugSettings().setLinePreciseReportingOnNewComponentEnabled(false); }
From source file:org.wicketstuff.js.ext.util.ExtResourcesHeaderItem.java
License:Apache License
@Override public Iterable<? extends HeaderItem> getDependencies() { final Application application = Application.get(); IJavaScriptLibrarySettings jsLibrarySettings = application.getJavaScriptLibrarySettings(); final IDebugSettings debugSettings = application.getDebugSettings(); if (debugSettings.isAjaxDebugModeEnabled()) { return Arrays.asList(JavaScriptHeaderItem.forReference(jsLibrarySettings.getWicketAjaxDebugReference()), JavaScriptHeaderItem.forScript("Wicket.Ajax.DebugWindow.enabled=true;", "wicket-ajax-debug-enable")); } else {//from w w w.j a va 2s . co m ResourceReference wicketAjaxReference = jsLibrarySettings.getWicketAjaxReference(); return Arrays.asList(JavaScriptHeaderItem.forReference(wicketAjaxReference)); } }
From source file:tg.adn.precord.core.web.PrecordAppInit.java
@Override public void init(Application app) { // application name app.setName("Precord App"); // debug settings app.setDebugSettings(app.getDebugSettings().setAjaxDebugModeEnabled(false) .setDevelopmentUtilitiesEnabled(true).setLinePreciseReportingOnAddComponentEnabled(true)); // security settings app.setSecuritySettings(app.getSecuritySettings().setEnforceMounts(true)); }