| Package | Description |
|---|---|
| org.springframework.validation |
Provides data binding and validation functionality,
for usage in business and/or UI layers.
|
| org.springframework.web.bind.support |
Support classes for web data binding.
|
| org.springframework.web.portlet.mvc |
Standard controller implementations for the portlet MVC framework that
comes with Spring.
|
| org.springframework.web.servlet.mvc |
Standard controller implementations for the Servlet MVC framework that comes with
Spring.
|
| org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
| org.springframework.web.servlet.mvc.support |
Support package for MVC controllers.
|
| Modifier and Type | Method and Description |
|---|---|
BindException |
DataBinder.getErrors()
Deprecated.
in favor of
DataBinder.getBindingResult().
Use the BindException(BindingResult) constructor
to create a BindException instance if still needed. |
| Modifier and Type | Method and Description |
|---|---|
Map<?,?> |
DataBinder.close()
Close this DataBinder, which may result in throwing
a BindException if it encountered any errors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WebRequestDataBinder.closeNoCatch()
Treats errors as fatal.
|
| Modifier and Type | Method and Description |
|---|---|
protected BindException |
AbstractFormController.getErrorsForNewForm(javax.portlet.RenderRequest request)
Deprecated.
Create a BindException instance for a new form.
|
protected BindException |
BaseCommandController.getRenderErrors(javax.portlet.RenderRequest request)
Deprecated.
Get the bind and validation errors cached for the render phase.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
AbstractCommandController.handleAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
Object command,
BindException errors)
Deprecated.
Template method for request handling, providing a populated and validated instance
of the command class, and an Errors object containing binding and validation errors.
|
protected abstract ModelAndView |
AbstractCommandController.handleRender(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
Object command,
BindException errors)
Deprecated.
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.
|
protected void |
BaseCommandController.onBind(javax.portlet.PortletRequest request,
Object command,
BindException errors)
Deprecated.
Callback for custom post-processing in terms of binding.
|
protected void |
AbstractWizardFormController.onBindAndValidate(javax.portlet.PortletRequest request,
Object command,
BindException errors)
Deprecated.
Calls page-specific onBindAndValidate method.
|
protected void |
BaseCommandController.onBindAndValidate(javax.portlet.PortletRequest request,
Object command,
BindException errors)
Deprecated.
Callback for custom post-processing in terms of binding and validation.
|
protected void |
AbstractWizardFormController.onBindAndValidate(javax.portlet.PortletRequest request,
Object command,
BindException errors,
int page)
Deprecated.
Callback for custom post-processing in terms of binding and validation.
|
protected void |
AbstractFormController.onBindOnNewForm(javax.portlet.RenderRequest request,
Object command,
BindException errors)
Deprecated.
Callback for custom post-processing in terms of binding for a new form.
|
protected void |
SimpleFormController.onFormChange(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
Object command,
BindException errors)
Deprecated.
Called during form submission if
SimpleFormController.isFormChangeRequest(PortletRequest)
returns true. |
protected void |
SimpleFormController.onSubmitAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
Object command,
BindException errors)
Deprecated.
Submit action phase callback with all parameters.
|
protected void |
SimpleFormController.onSubmitAction(Object command,
BindException errors)
Deprecated.
Simpler
onSubmitAction version. |
protected ModelAndView |
SimpleFormController.onSubmitRender(Object command,
BindException errors)
Deprecated.
Simpler
onSubmitRender version. |
protected ModelAndView |
SimpleFormController.onSubmitRender(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
Object command,
BindException errors)
Deprecated.
Submit render phase callback with all parameters.
|
protected void |
AbstractWizardFormController.processCancel(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
Object command,
BindException errors)
Deprecated.
Template method for the action phase of the cancel action of this wizard.
|
protected void |
AbstractWizardFormController.processFinish(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
Object command,
BindException errors)
Deprecated.
Template method for the action phase of the finish action of this wizard.
|
protected void |
SimpleFormController.processFormSubmission(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
Object command,
BindException errors)
Deprecated.
This implementation does nothing in case of errors,
and delegates to
onSubmitAction's full version else. |
protected void |
AbstractWizardFormController.processFormSubmission(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
Object command,
BindException errors)
Deprecated.
Apply wizard workflow: finish, cancel, page change.
|
protected abstract void |
AbstractFormController.processFormSubmission(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
Object command,
BindException errors)
Deprecated.
Process action phase of form submission request.
|
protected ModelAndView |
AbstractWizardFormController.renderCancel(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
Object command,
BindException errors)
Deprecated.
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)
Deprecated.
Template method for the render phase of the finish action of this wizard.
|
protected ModelAndView |
SimpleFormController.renderFormSubmission(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
Object command,
BindException errors)
Deprecated.
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)
Deprecated.
Apply wizard workflow: finish, cancel, page change.
|
protected abstract ModelAndView |
AbstractFormController.renderFormSubmission(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
Object command,
BindException errors)
Deprecated.
Process render phase of form submission request.
|
protected void |
BaseCommandController.setRenderCommandAndErrors(javax.portlet.ActionRequest request,
Object command,
BindException errors)
Deprecated.
Set the command object and errors object for the render phase.
|
protected ModelAndView |
AbstractFormController.showForm(javax.portlet.RenderRequest request,
BindException errors,
String viewName)
Deprecated.
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)
Deprecated.
Prepare model and view for the given form, including reference and errors,
adding a controller-specific control model.
|
protected ModelAndView |
SimpleFormController.showForm(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
BindException errors)
Deprecated.
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)
Deprecated.
Show the first page as form view.
|
protected abstract ModelAndView |
AbstractFormController.showForm(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
BindException errors)
Deprecated.
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,
Map controlModel)
Deprecated.
This implementation shows the configured form view.
|
protected ModelAndView |
AbstractWizardFormController.showPage(javax.portlet.RenderRequest request,
BindException errors,
int page)
Deprecated.
Prepare the form model and view, including reference and error data,
for the given page.
|
| Modifier and Type | Method and Description |
|---|---|
protected BindException |
AbstractFormController.getErrorsForNewForm(javax.servlet.http.HttpServletRequest request)
Deprecated.
Create a BindException instance for a new form.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract ModelAndView |
AbstractCommandController.handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object command,
BindException errors)
Deprecated.
Template method for request handling, providing a populated and validated instance
of the command class, and an Errors object containing binding and validation errors.
|
protected void |
BaseCommandController.onBind(javax.servlet.http.HttpServletRequest request,
Object command,
BindException errors)
Deprecated.
Callback for custom post-processing in terms of binding.
|
protected void |
AbstractWizardFormController.onBindAndValidate(javax.servlet.http.HttpServletRequest request,
Object command,
BindException errors)
Deprecated.
Calls page-specific onBindAndValidate method.
|
protected void |
BaseCommandController.onBindAndValidate(javax.servlet.http.HttpServletRequest request,
Object command,
BindException errors)
Deprecated.
Callback for custom post-processing in terms of binding and validation.
|
protected void |
AbstractWizardFormController.onBindAndValidate(javax.servlet.http.HttpServletRequest request,
Object command,
BindException errors,
int page)
Deprecated.
Callback for custom post-processing in terms of binding and validation.
|
protected void |
AbstractFormController.onBindOnNewForm(javax.servlet.http.HttpServletRequest request,
Object command,
BindException errors)
Deprecated.
Callback for custom post-processing in terms of binding for a new form.
|
protected void |
SimpleFormController.onFormChange(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object command,
BindException errors)
Deprecated.
Called during form submission if
SimpleFormController.isFormChangeRequest(javax.servlet.http.HttpServletRequest)
returns true. |
protected ModelAndView |
SimpleFormController.onSubmit(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object command,
BindException errors)
Deprecated.
Submit callback with all parameters.
|
protected ModelAndView |
SimpleFormController.onSubmit(Object command,
BindException errors)
Deprecated.
Simpler
onSubmit variant. |
protected ModelAndView |
AbstractWizardFormController.processCancel(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object command,
BindException errors)
Deprecated.
Template method for processing the cancel action of this wizard.
|
protected abstract ModelAndView |
AbstractWizardFormController.processFinish(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object command,
BindException errors)
Deprecated.
Template method for processing the final action of this wizard.
|
protected ModelAndView |
SimpleFormController.processFormSubmission(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object command,
BindException errors)
Deprecated.
This implementation calls
SimpleFormController.showForm(HttpServletRequest, HttpServletResponse, BindException)
in case of errors, and delegates to the full
SimpleFormController.onSubmit(HttpServletRequest, HttpServletResponse, Object, BindException)'s
variant else. |
protected ModelAndView |
AbstractWizardFormController.processFormSubmission(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object command,
BindException errors)
Deprecated.
Apply wizard workflow: finish, cancel, page change.
|
protected abstract ModelAndView |
AbstractFormController.processFormSubmission(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object command,
BindException errors)
Deprecated.
Process form submission request.
|
protected ModelAndView |
CancellableFormController.processFormSubmission(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object command,
BindException errors)
Deprecated.
This implementation first checks to see if the incoming is a cancel request,
through a call to
CancellableFormController.isCancelRequest(javax.servlet.http.HttpServletRequest). |
protected ModelAndView |
AbstractFormController.showForm(javax.servlet.http.HttpServletRequest request,
BindException errors,
String viewName)
Deprecated.
Prepare model and view for the given form, including reference and errors.
|
protected ModelAndView |
AbstractFormController.showForm(javax.servlet.http.HttpServletRequest request,
BindException errors,
String viewName,
Map controlModel)
Deprecated.
Prepare model and view for the given form, including reference and errors,
adding a controller-specific control model.
|
protected ModelAndView |
SimpleFormController.showForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
BindException errors)
Deprecated.
This implementation shows the configured form view, delegating to the analogous
SimpleFormController.showForm(HttpServletRequest, HttpServletResponse, BindException, Map)
variant with a "controlModel" argument. |
protected ModelAndView |
AbstractWizardFormController.showForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
BindException errors)
Deprecated.
Show the first page as form view.
|
protected abstract ModelAndView |
AbstractFormController.showForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
BindException errors)
Deprecated.
Prepare the form model and view, including reference and error data.
|
protected ModelAndView |
SimpleFormController.showForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
BindException errors,
Map controlModel)
Deprecated.
This implementation shows the configured form view.
|
protected ModelAndView |
AbstractWizardFormController.showPage(javax.servlet.http.HttpServletRequest request,
BindException errors,
int page)
Deprecated.
Prepare the form model and view, including reference and error data,
for the given page.
|
protected boolean |
BaseCommandController.suppressValidation(javax.servlet.http.HttpServletRequest request,
Object command,
BindException errors)
Deprecated.
Return whether to suppress validation for the given request.
|
| Modifier and Type | Method and Description |
|---|---|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleBindException(BindException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for BindException.
|
| Modifier and Type | Method and Description |
|---|---|
protected ModelAndView |
DefaultHandlerExceptionResolver.handleBindException(BindException ex,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
Handle the case where an @ModelAttribute method
argument has binding or validation errors and is not followed by another
method argument of type
BindingResult. |
Copyright © 2015. All rights reserved.