/** * {@inheritDoc} */ @Override public void setThrowExceptionOnMissingResource(final boolean throwExceptionOnMissingResource) { application.getResourceSettings().setThrowExceptionOnMissingResource( throwExceptionOnMissingResource); }
/** * Sets a set of default development settings for development mode for the given application. * * @param application * the new debug settings for development */ public static void setDefaultDebugSettingsForDevelopment(final WebApplication application) { ApplicationExtensions.setHtmlHotDeploy(application); ApplicationExtensions.setDebugSettingsForDevelopment(application); ApplicationExtensions.setExceptionSettingsForDevelopment(application); // set the behavior if an missing resource is found... application.getResourceSettings().setThrowExceptionOnMissingResource(true); }
getResourceSettings().setThrowExceptionOnMissingResource(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); }
getResourceSettings().setThrowExceptionOnMissingResource(false); // Don't throw MissingResourceException for
mountResource("logo.png", new SharedResourceReference(imageLogoPath)); getMarkupSettings().setStripWicketTags(true); getResourceSettings().setThrowExceptionOnMissingResource(false); getApplicationListeners().add(new ModuledDataInstallator()); getApplicationListeners().add(new IApplicationListener() {