Package org.springframework.validation

Examples of org.springframework.validation.AbstractPropertyBindingResult


        else {
          this.objectErrors = this.errors.getFieldErrors(this.expression);
          this.value = this.errors.getFieldValue(this.expression);
          this.valueType = this.errors.getFieldType(this.expression);
          if (this.errors instanceof AbstractPropertyBindingResult) {
            AbstractPropertyBindingResult apbr = ((AbstractPropertyBindingResult) this.errors);
            this.actualValue = apbr.getActualFieldValue(this.expression);
            this.editor = apbr.getCustomEditor(this.expression);
          }
        }
      }

      else {
View Full Code Here


          // Unwrap BindException for backwards compatibility.
          if (this.errors instanceof BindException) {
            bindingResult = ((BindException) this.errors).getBindingResult();
          }
          if (bindingResult instanceof AbstractPropertyBindingResult) {
            AbstractPropertyBindingResult apbr = ((AbstractPropertyBindingResult) bindingResult);
            this.actualValue = apbr.getActualFieldValue(this.expression);
            this.editor = apbr.getCustomEditor(this.expression);
          }
        }
      }

      else {
View Full Code Here

     * Return the internal BindingResult held by this DataBinder, as
     * AbstractPropertyBindingResult.
     */
    @Override
    protected AbstractPropertyBindingResult getInternalBindingResult() {
        AbstractPropertyBindingResult bindingResult = super.getInternalBindingResult();

        // by rose
        PropertyEditorRegistry registry = bindingResult.getPropertyEditorRegistry();
        registry.registerCustomEditor(Date.class, new DateEditor(Date.class));
        registry.registerCustomEditor(java.sql.Date.class, new DateEditor(java.sql.Date.class));
        registry.registerCustomEditor(java.sql.Time.class, new DateEditor(java.sql.Time.class));
        registry.registerCustomEditor(java.sql.Timestamp.class, new DateEditor(
                java.sql.Timestamp.class));
View Full Code Here

     * Return the internal BindingResult held by this DataBinder, as
     * AbstractPropertyBindingResult.
     */
    @Override
    protected AbstractPropertyBindingResult getInternalBindingResult() {
        AbstractPropertyBindingResult bindingResult = super.getInternalBindingResult();

        // by rose
        PropertyEditorRegistry registry = bindingResult.getPropertyEditorRegistry();
        registry.registerCustomEditor(Date.class, new DateEditor(Date.class));
        registry.registerCustomEditor(java.sql.Date.class, new DateEditor(java.sql.Date.class));
        registry.registerCustomEditor(java.sql.Time.class, new DateEditor(java.sql.Time.class));
        registry.registerCustomEditor(java.sql.Timestamp.class, new DateEditor(
                java.sql.Timestamp.class));
View Full Code Here

TOP

Related Classes of org.springframework.validation.AbstractPropertyBindingResult

Copyright © 2018 www.massapicom. 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.