Package org.springframework.web.portlet.bind

Examples of org.springframework.web.portlet.bind.PortletRequestDataBinder.bind()


    if (isBindOnNewForm()) {
      if (logger.isDebugEnabled()) {
        logger.debug("Binding to new form");
      }
      binder.bind(request);
      onBindOnNewForm(request, command, errors);
    }
   
    // Return BindException object that resulted from binding.
    return errors;
View Full Code Here


  protected final PortletRequestDataBinder bindAndValidate(PortletRequest request, Object command)
      throws Exception {
       
    PortletRequestDataBinder binder = createBinder(request, command);
    if (!suppressBinding(request)) {
      binder.bind(request);
      BindException errors = new BindException(binder.getBindingResult());
      onBind(request, command, errors);
      if (this.validators != null && isValidateOnBinding() && !suppressValidation(request)) {
        for (int i = 0; i < this.validators.length; i++) {
          ValidationUtils.invokeValidator(this.validators[i], command, errors);
View Full Code Here

    if (isBindOnNewForm()) {
      if (logger.isDebugEnabled()) {
        logger.debug("Binding to new form");
      }
      binder.bind(request);
      onBindOnNewForm(request, command, errors);
    }
   
    // Return BindException object that resulted from binding.
    return errors;
View Full Code Here

    }

    @Override
    protected void doBind(WebDataBinder binder, NativeWebRequest webRequest) throws Exception {
      PortletRequestDataBinder portletBinder = (PortletRequestDataBinder) binder;
      portletBinder.bind(webRequest.getNativeRequest(PortletRequest.class));
    }

    @Override
    protected Object resolveDefaultValue(String value) {
      if (beanFactory == null) {
View Full Code Here

    if (isBindOnNewForm()) {
      if (logger.isDebugEnabled()) {
        logger.debug("Binding to new form");
      }
      binder.bind(request);
      onBindOnNewForm(request, command, errors);
    }
   
    // Return BindException object that resulted from binding.
    return errors;
View Full Code Here

  protected final PortletRequestDataBinder bindAndValidate(PortletRequest request, Object command)
      throws Exception {
       
    PortletRequestDataBinder binder = createBinder(request, command);
    if (!suppressBinding(request)) {
      binder.bind(request);
      BindException errors = new BindException(binder.getBindingResult());
      onBind(request, command, errors);
      if (this.validators != null && isValidateOnBinding() && !suppressValidation(request)) {
        for (int i = 0; i < this.validators.length; i++) {
          ValidationUtils.invokeValidator(this.validators[i], command, errors);
View Full Code Here

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

      PortletRequestDataBinder servletBinder = (PortletRequestDataBinder) binder;
      servletBinder.bind((PortletRequest) webRequest.getNativeRequest());
      if (failOnErrors) {
        servletBinder.closeNoCatch();
      }
    }
View Full Code Here

  protected final PortletRequestDataBinder bindAndValidate(PortletRequest request, Object command)
      throws Exception {
       
    PortletRequestDataBinder binder = createBinder(request, command);
    if (!suppressBinding(request)) {
      binder.bind(request);
      BindException errors = new BindException(binder.getBindingResult());
      onBind(request, command, errors);
      if (this.validators != null && isValidateOnBinding() && !suppressValidation(request)) {
        for (int i = 0; i < this.validators.length; i++) {
          ValidationUtils.invokeValidator(this.validators[i], command, errors);
View Full Code Here

    }

    @Override
    protected void doBind(WebDataBinder binder, NativeWebRequest webRequest) throws Exception {
      PortletRequestDataBinder portletBinder = (PortletRequestDataBinder) binder;
      portletBinder.bind(webRequest.getNativeRequest(PortletRequest.class));
    }

    @Override
    protected Object resolveDefaultValue(String value) {
      if (beanFactory == null) {
View Full Code Here

  protected final PortletRequestDataBinder bindAndValidate(PortletRequest request, Object command)
      throws Exception {
       
    PortletRequestDataBinder binder = createBinder(request, command);
    if (!suppressBinding(request)) {
      binder.bind(request);
      BindException errors = new BindException(binder.getBindingResult());
      onBind(request, command, errors);
      if (this.validators != null && isValidateOnBinding() && !suppressValidation(request)) {
        for (int i = 0; i < this.validators.length; i++) {
          ValidationUtils.invokeValidator(this.validators[i], command, errors);
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.