/** * @see org.apache.wicket.jmx.DebugSettingsMBean#setAjaxDebugModeEnabled(boolean) */ @Override public void setAjaxDebugModeEnabled(final boolean enable) { application.getDebugSettings().setAjaxDebugModeEnabled(enable); }
@Override public void init(WebApplication webApplication) { if(properties.isEnabled()){ DebugSettings debugSettings = webApplication.getDebugSettings(); debugSettings.setDevelopmentUtilitiesEnabled(properties.isDevelopmentUtilitiesEnabled()); debugSettings.setAjaxDebugModeEnabled(properties.isAjaxDebugModeEnabled()); debugSettings.setComponentUseCheck(properties.isComponentUseCheck()); debugSettings.setOutputMarkupContainerClassName(properties.isOutputMarkupContainerClassName()); debugSettings.setComponentPathAttributeName(properties.getComponentPathAttributeName()); } wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass()) .withDetail("properties", properties) .build()); }
@Override public void init(WebApplication webApplication) { if(properties.isEnabled()){ DebugSettings debugSettings = webApplication.getDebugSettings(); debugSettings.setDevelopmentUtilitiesEnabled(properties.isDevelopmentUtilitiesEnabled()); debugSettings.setAjaxDebugModeEnabled(properties.isAjaxDebugModeEnabled()); debugSettings.setComponentUseCheck(properties.isComponentUseCheck()); debugSettings.setOutputMarkupContainerClassName(properties.isOutputMarkupContainerClassName()); debugSettings.setComponentPathAttributeName(properties.getComponentPathAttributeName()); } wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass()) .withDetail("properties", properties) .build()); }
/** * 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); }
.getStringResourceLoaders() .add(0, new GeoServerStringResourceLoader()); getDebugSettings().setAjaxDebugModeEnabled(false);
ExceptionSettings.SHOW_EXCEPTION_PAGE); getDebugSettings().setComponentUseCheck(true); getDebugSettings().setAjaxDebugModeEnabled(true); getDebugSettings().setDevelopmentUtilitiesEnabled(true); ExceptionSettings.SHOW_INTERNAL_ERROR_PAGE); getDebugSettings().setComponentUseCheck(false); getDebugSettings().setAjaxDebugModeEnabled(false); getDebugSettings().setDevelopmentUtilitiesEnabled(false); break;
ExceptionSettings.SHOW_EXCEPTION_PAGE); getDebugSettings().setComponentUseCheck(true); getDebugSettings().setAjaxDebugModeEnabled(true); getDebugSettings().setDevelopmentUtilitiesEnabled(true); ExceptionSettings.SHOW_INTERNAL_ERROR_PAGE); getDebugSettings().setComponentUseCheck(false); getDebugSettings().setAjaxDebugModeEnabled(false); getDebugSettings().setDevelopmentUtilitiesEnabled(false); break;
/** * 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); }