List of usage examples for org.apache.wicket.bean.validation BeanValidationConfiguration BeanValidationConfiguration
public BeanValidationConfiguration()
From source file:com.francetelecom.clara.cloud.presentation.WicketApplication.java
License:Apache License
/** * Define application settings//from w w w. ja v a 2 s. c o m */ @Override protected void init() { if (logger.isDebugEnabled()) { logger.debug("Wicket application init (configurationType:[{}])", getConfigurationType()); } defineSpringInjector(); if (!RuntimeConfigurationType.DEVELOPMENT.equals(getConfigurationType())) { // change default error/timeout pages in production mode //defineErrorPage(); // remove "wicket:id" from html generated code in production mode getMarkupSettings().setStripWicketTags(true); } else { setupDevelopmentSettings(); } //TODO Remove // getDebugSettings().setAjaxDebugModeEnabled(true); IApplicationSettings settings = getApplicationSettings(); // https://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html settings.setInternalErrorPage(UnknownExceptionPage.class); // settings.setAccessDeniedPage(); // settings.setPageExpiredErrorPage(); getRequestCycleListeners().add(new ExecutionHandlerRequestCycle(this, new WebPageBaseFactory())); //TODO : Not available in Wicket 1.5 because it's enabled by default. Why was it disabled? // getPageSettings().setAutomaticMultiWindowSupport(false); //will encrypt/decrypt the URLs generated by the inner one IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this); setRootRequestMapper(cryptoMapper); // ICryptFactory jasyptCryptFactory = new JasyptCryptFactory(urlEncryptor); // getSecuritySettings().setCryptFactory(jasyptCryptFactory); mountBookmarks(); // https://cwiki.apache.org/WICKET/request-mapping.html // https://issues.apache.org/jira/browse/WICKET-4488 // URL with a previous page version ignores requested page based on mount path // http://apache-wicket.1842946.n4.nabble.com/I-don-t-want-url-page-count-parameter-localhost-8080-context-0-td4481510i40.html super.init(); WicketWebjars.install(this); new BeanValidationConfiguration().configure(this); // For VMWare SDK logging (vCloud API) // call only once during initialization time of your application // Do not work (NPE on undeploy) // SLF4JBridgeHandler.install(); }
From source file:eu.uqasar.web.UQasar.java
License:Apache License
/** * */ private void configureBeanValidation() { new BeanValidationConfiguration().configure(this); }
From source file:org.wicketTutorial.jsr303validation.WicketApplication.java
License:Apache License
/** * @see org.apache.wicket.Application#init() *//* w ww. ja v a 2 s. c o m*/ @Override public void init() { super.init(); new BeanValidationConfiguration().configure(this); }