/** * @see org.apache.wicket.jmx.DebugSettingsMBean#setLinePreciseReportingOnNewComponentEnabled(boolean) */ @Override public void setLinePreciseReportingOnNewComponentEnabled(final boolean enable) { application.getDebugSettings().setLinePreciseReportingOnNewComponentEnabled(enable); }
/** * Sets the debug settings for development mode for the given application. * * @param application * 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); }
/** * Sets the deployment settings for deployment mode for the given application. * * @param application * 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); }