This class is deprecated.
as of Spring 3.0, in favor of annotated controllers
Abstract base class for custom command controllers. Autopopulates a command bean from the request. For command validation, a validator (property inherited from BaseCommandController) can be used.
This command controller should preferrable not be used to handle form
submission, because functionality for forms is more offered in more
detail by the AbstractFormController
and its corresponding implementations.
Exposed configuration properties
(and those defined by superclass):
none (so only those available in superclass).
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.portlet.mvc.BaseCommandController
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.context.support.ApplicationObjectSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new AbstractCommandController.
| |||||||||||
Create a new AbstractCommandController.
| |||||||||||
Create a new AbstractCommandController.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the name of the render parameter that indicates there
is a valid command (and errors) object in the session.
| |||||||||||
Template method for request handling, providing a populated and validated instance
of the command class, and an Errors object containing binding and validation errors.
| |||||||||||
Subclasses are meant to override this method if the controller
is expected to handle action requests.
| |||||||||||
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.
| |||||||||||
Subclasses are meant to override this method if the controller
is expected to handle render requests.
| |||||||||||
Determine if there is a valid command (and errors) object in the
session for this render request.
| |||||||||||
Set the action response parameter that indicates there is a
command (and errors) object in the session for the render phase.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.portlet.mvc.BaseCommandController
| |||||||||||
From class
org.springframework.web.portlet.mvc.AbstractController
| |||||||||||
From class
org.springframework.web.portlet.handler.PortletContentGenerator
| |||||||||||
From class
org.springframework.web.portlet.context.PortletApplicationObjectSupport
| |||||||||||
From class
org.springframework.context.support.ApplicationObjectSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.context.ApplicationContextAware
| |||||||||||
From interface
org.springframework.web.portlet.context.PortletContextAware
| |||||||||||
From interface
org.springframework.web.portlet.mvc.Controller
|
Create a new AbstractCommandController.
Create a new AbstractCommandController.
commandClass | class of the command bean |
---|
Create a new AbstractCommandController.
commandClass | class of the command bean |
---|---|
commandName | name of the command bean |
Return the name of the render parameter that indicates there is a valid command (and errors) object in the session.
Template method for request handling, providing a populated and validated instance of the command class, and an Errors object containing binding and validation errors.
Call errors.getModel()
to populate the ModelAndView model
with the command and the Errors instance, under the specified command name,
as expected by the "spring:bind" tag.
request | current action request |
---|---|
response | current action response |
command | the populated command object |
errors | validation errors holder |
Exception |
---|
Subclasses are meant to override this method if the controller
is expected to handle action requests. The contract is the same as
for handleActionRequest
.
The default implementation throws a PortletException.
Exception |
---|
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.
Call errors.getModel()
to populate the ModelAndView model
with the command and the Errors instance, under the specified command name,
as expected by the "spring:bind" tag.
request | current render request |
---|---|
response | current render response |
command | the populated command object |
errors | validation errors holder |
Exception |
---|
Subclasses are meant to override this method if the controller
is expected to handle render requests. The contract is the same as
for handleRenderRequest
.
The default implementation throws a PortletException.
Exception |
---|
Determine if there is a valid command (and errors) object in the session for this render request.
request | current render request |
---|
Set the action response parameter that indicates there is a command (and errors) object in the session for the render phase.
response | the current action response |
---|