The Spring Framework

## Uses of Class
org.springframework.web.portlet.ModelAndView

Packages that use ModelAndView
org.springframework.web.portlet: Provides JSR-168 portlets that integrate with the application context infrastructure, and the core interfaces and classes for the Portlet variant of Spring's web MVC framework.
org.springframework.web.portlet.handler: Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.
org.springframework.web.portlet.mvc: Standard controller implementations for the portlet MVC framework that comes with Spring.
org.springframework.web.portlet.mvc.annotation: Support package for annotation-based Portlet MVC controllers.

Uses of ModelAndView in org.springframework.web.portlet

Methods in org.springframework.web.portlet that return ModelAndView
`ModelAndView` `ModelAndView.addAllObjects(Map modelMap)` Add all attributes contained in the provided Map to the model.
`ModelAndView` `ModelAndView.addObject(Object attributeValue)` Add an attribute to the model using parameter name generation.
`ModelAndView` `ModelAndView.addObject(String attributeName, Object attributeValue)` Add an attribute to the model.
`ModelAndView` `ModelAndViewDefiningException.getModelAndView()` Return the ModelAndView that this exception contains for forwarding to.
`ModelAndView` `HandlerAdapter.handleRender(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object handler)` Use the given handler to handle this render request.
`protected ModelAndView` `DispatcherPortlet.processHandlerException(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object handler, Exception ex)` Determine an error ModelAndView via the registered HandlerExceptionResolvers.
`ModelAndView` `HandlerExceptionResolver.resolveException(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object handler, Exception ex)` Try to resolve the given exception that got thrown during on handler execution, returning a ModelAndView that represents a specific error page if appropriate.

Methods in org.springframework.web.portlet with parameters of type ModelAndView
`void` `HandlerInterceptor.postHandleRender(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object handler, ModelAndView modelAndView)` Intercept the execution of a handler in the render phase.
`protected void` `DispatcherPortlet.render(ModelAndView mv, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)` Render the given ModelAndView.

Constructors in org.springframework.web.portlet with parameters of type ModelAndView
`ModelAndViewDefiningException(ModelAndView modelAndView)` Create new ModelAndViewDefiningException with the given ModelAndView, typically representing a specific error page.

Uses of ModelAndView in org.springframework.web.portlet.handler

Methods in org.springframework.web.portlet.handler that return ModelAndView
`protected ModelAndView` `SimpleMappingExceptionResolver.doResolveException(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object handler, Exception ex)` Actually resolve the given exception that got thrown during on handler execution, returning a ModelAndView that represents a specific error page if appropriate.
`protected ModelAndView` `SimpleMappingExceptionResolver.getModelAndView(String viewName, Exception ex)` Return a ModelAndView for the given view name and exception.
`protected ModelAndView` `SimpleMappingExceptionResolver.getModelAndView(String viewName, Exception ex, javax.portlet.RenderRequest request)` Return a ModelAndView for the given request, view name and exception.
`ModelAndView` `SimplePortletHandlerAdapter.handleRender(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object handler)`

`ModelAndView`

`SimpleMappingExceptionResolver.resolveException(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object handler, Exception ex)`
Checks whether this resolver is supposed to apply (i.e. the handler matches in case of "mappedHandlers" having been specified), then delegates to the `SimpleMappingExceptionResolver.doResolveException(javax.portlet.RenderRequest, javax.portlet.RenderResponse, java.lang.Object, java.lang.Exception)` template method.

Methods in org.springframework.web.portlet.handler with parameters of type ModelAndView
`void` `WebRequestHandlerInterceptorAdapter.postHandleRender(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object handler, ModelAndView modelAndView)`
`void` `HandlerInterceptorAdapter.postHandleRender(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object handler, ModelAndView modelAndView)` This implementation is empty.

Uses of ModelAndView in org.springframework.web.portlet.mvc

Methods in org.springframework.web.portlet.mvc that return ModelAndView
`ModelAndView` `SimpleControllerHandlerAdapter.handleRender(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object handler)`
`protected abstract ModelAndView` `AbstractCommandController.handleRender(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object command, BindException errors)` Template method for render request handling, providing a populated and validated instance of the command class, and an Errors object containing binding and validation errors.
`ModelAndView` `PortletModeNameViewController.handleRenderRequest(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)`
`ModelAndView` `Controller.handleRenderRequest(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)` Process the render request and return a ModelAndView object which the DispatcherPortlet will render.
`ModelAndView` `AbstractController.handleRenderRequest(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)`
`protected ModelAndView` `AbstractFormController.handleRenderRequestInternal(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)` Handles render phase of two cases: form submissions and showing a new form.
`protected ModelAndView` `PortletWrappingController.handleRenderRequestInternal(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)`
`protected ModelAndView` `ParameterizableViewController.handleRenderRequestInternal(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)` Return a ModelAndView object with the specified view name.
`protected ModelAndView` `AbstractController.handleRenderRequestInternal(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)` Subclasses are meant to override this method if the controller is expected to handle render requests.
`protected ModelAndView` `AbstractCommandController.handleRenderRequestInternal(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)`
`protected ModelAndView` `SimpleFormController.onSubmitRender(Object command)` Simplest `onSubmitRender` version.
`protected ModelAndView` `SimpleFormController.onSubmitRender(Object command, BindException errors)` Simpler `onSubmitRender` version.
`protected ModelAndView` `SimpleFormController.onSubmitRender(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object command, BindException errors)` Submit render phase callback with all parameters.
`protected ModelAndView` `AbstractWizardFormController.renderCancel(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object command, BindException errors)` Template method for the render phase of the cancel action of this wizard.
`protected ModelAndView` `AbstractWizardFormController.renderFinish(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object command, BindException errors)` Template method for the render phase of the finish action of this wizard.
`protected abstract ModelAndView` `AbstractFormController.renderFormSubmission(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object command, BindException errors)` Process render phase of form submission request.
`protected ModelAndView` `SimpleFormController.renderFormSubmission(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object command, BindException errors)` This implementation calls `showForm` in case of errors, and delegates to `onSubmitRender`'s full version else.``
`protected ModelAndView` `AbstractWizardFormController.renderFormSubmission(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object command, BindException errors)` Apply wizard workflow: finish, cancel, page change.
`protected ModelAndView` `AbstractFormController.renderInvalidSubmit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)` Handle an invalid submit request, e.g. when in session form mode but no form object was found in the session (like in case of an invalid resubmit by the browser).
`protected ModelAndView` `AbstractWizardFormController.renderInvalidSubmit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)` Handle an invalid submit request, e.g. when in session form mode but no form object was found in the session (like in case of an invalid resubmit by the browser).
`protected ModelAndView` `AbstractFormController.showForm(javax.portlet.RenderRequest request, BindException errors, String viewName)` Prepare model and view for the given form, including reference and errors.
`protected ModelAndView` `AbstractFormController.showForm(javax.portlet.RenderRequest request, BindException errors, String viewName, Map controlModel)` Prepare model and view for the given form, including reference and errors, adding a controller-specific control model.
`protected abstract ModelAndView` `AbstractFormController.showForm(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, BindException errors)` Prepare the form model and view, including reference and error data.
`protected ModelAndView` `SimpleFormController.showForm(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, BindException errors)` This implementation shows the configured form view, delegating to the analogous showForm version with a controlModel argument.
`protected ModelAndView` `AbstractWizardFormController.showForm(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, BindException errors)` Show the first page as form view.
`protected ModelAndView` `SimpleFormController.showForm(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, BindException errors, Map controlModel)` This implementation shows the configured form view.
`protected ModelAndView` `AbstractFormController.showNewForm(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)` Show a new form.
`protected ModelAndView` `AbstractWizardFormController.showPage(javax.portlet.RenderRequest request, BindException errors, int page)` Prepare the form model and view, including reference and error data, for the given page.

Uses of ModelAndView in org.springframework.web.portlet.mvc.annotation

Methods in org.springframework.web.portlet.mvc.annotation that return ModelAndView
`protected ModelAndView` `AnnotationMethodHandlerAdapter.doHandle(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, Object handler)`
`ModelAndView` `AnnotationMethodHandlerAdapter.handleRender(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, Object handler)`

The Spring Framework

Copyright © 2002-2008 The Spring Framework.