Package org.springframework.web.bind.support

Examples of org.springframework.web.bind.support.WebRequestDataBinder


  }

  protected WebDataBinder createBinder(NativeWebRequest webRequest, Object target, String objectName)
      throws Exception {

    return new WebRequestDataBinder(target, objectName);
  }
View Full Code Here


  }

  protected WebDataBinder createBinder(NativeWebRequest webRequest, Object target, String objectName)
      throws Exception {

    return new WebRequestDataBinder(target, objectName);
  }
View Full Code Here

  }

  protected void doBind(NativeWebRequest webRequest, WebDataBinder binder, boolean failOnErrors)
      throws Exception {

    WebRequestDataBinder requestBinder = (WebRequestDataBinder) binder;
    requestBinder.bind(webRequest);
    if (failOnErrors) {
      requestBinder.closeNoCatch();
    }
  }
View Full Code Here

  }

  protected WebDataBinder createBinder(NativeWebRequest webRequest, Object target, String objectName)
      throws Exception {

    return new WebRequestDataBinder(target, objectName);
  }
View Full Code Here

    }
    if (BeanUtils.isSimpleProperty(methodParameter.getParameterType())) {
      assertHasName(name, methodParameter);
      addIfNotContainsKey(model, name, value);
    } else {
      WebDataBinder binder = new WebRequestDataBinder(value);
      WebRequest request = new FacesWebRequest(FacesContext.getCurrentInstance());
      if (this.context.getWebBindingInitializer() != null) {
        this.context.getWebBindingInitializer().initBinder(binder, request);
      }
      ReverseDataBinder reverseBinder = new ReverseDataBinder(binder);
View Full Code Here

    }
  }

  protected BindingResult performDataBinding(final WebScriptRequest request, final Command command,
      final Object commandObject) {
    final WebRequestDataBinder dataBinder = new WebRequestDataBinder(commandObject);
    dataBinder.setIgnoreInvalidFields(command.ignoreInvalidFields());
    dataBinder.setIgnoreUnknownFields(command.ignoreUnknownFields());
    if (command.allowedFields().length > 0) {
      dataBinder.setAllowedFields(command.allowedFields());
    }
    dataBinder.bind(new WebScriptWebRequest(request));
    return dataBinder.getBindingResult();
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.bind.support.WebRequestDataBinder

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.