Package org.springframework.web.portlet.bind

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


          logger.debug("Processing valid submit (redirectAction = " + isRedirectAction() + ")");
        }
        if (!isRedirectAction()) {
          setFormSubmit(response);
        }
        PortletRequestDataBinder binder = bindAndValidate(request, command);
        BindException errors = new BindException(binder.getBindingResult());
        processFormSubmission(request, response, command, errors);
        setRenderCommandAndErrors(request, command, errors);
        return;
      }
      catch (PortletSessionRequiredException ex) {
View Full Code Here


      throw new PortletException("Form object returned by formBackingObject() must match commandClass");
    }

    // Bind without validation, to allow for prepopulating a form, and for
    // convenient error evaluation in views (on both first attempt and resubmit).
    PortletRequestDataBinder binder = createBinder(request, command);
    BindException errors = new BindException(binder.getBindingResult());

    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

      throw new PortletException("Form object returned by formBackingObject() must not be null");
    }
    if (!checkCommand(command)) {
      throw new PortletException("Form object returned by formBackingObject() must match commandClass");
    }
    PortletRequestDataBinder binder = bindAndValidate(request, command);
    BindException errors = new BindException(binder.getBindingResult());
    processFormSubmission(request, response, command, errors);
    setRenderCommandAndErrors(request, 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

TOP

Related Classes of org.springframework.web.portlet.bind.PortletRequestDataBinder

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.