コード例 #1
0
 @InitBinder
 protected void initBinder(WebDataBinder binder) {
   LazyBindingErrorProcessor errorProcessor = new LazyBindingErrorProcessor();
   binder.setValidator(
       new SavingsProductFormValidator(errorProcessor, configurationServiceFacade));
   binder.setBindingErrorProcessor(errorProcessor);
 }
コード例 #2
0
 @InitBinder("form")
 public void requestValidator(WebDataBinder binder) {
   binder.setValidator(new EditRegisterRequestValidator());
   binder.setBindingErrorProcessor(new ExceptionBindingErrorProcessor());
 }