Examples of BeanPropertyBindingResult


Examples of org.springframework.validation.BeanPropertyBindingResult

  }

  public void testWithMultiValueWithReverseEditor() throws Exception {
    this.tag.setPath("stringArray");
    this.tag.setItems(new Object[] {"FOO", "BAR", "BAZ"});
    BeanPropertyBindingResult bindingResult = new BeanPropertyBindingResult(this.bean, COMMAND_NAME);
    MyLowerCaseEditor editor = new MyLowerCaseEditor();
    bindingResult.getPropertyEditorRegistry().registerCustomEditor(String.class, editor);
    getPageContext().getRequest().setAttribute(BindingResult.MODEL_KEY_PREFIX + COMMAND_NAME, bindingResult);

    int result = this.tag.doStartTag();
    assertEquals(Tag.SKIP_BODY, result);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.