public class PersonDashboardController
extends org.springframework.web.servlet.mvc.SimpleFormController
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
DEFAULT_COMMAND_NAME| Constructor and Description |
|---|
PersonDashboardController() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
formBackingObject(javax.servlet.http.HttpServletRequest request)
Retrieve a backing object for the current form from the given request.
|
doSubmitAction, getFormView, getSuccessView, isFormChangeRequest, isFormChangeRequest, onFormChange, onFormChange, onSubmit, onSubmit, onSubmit, processFormSubmission, referenceData, referenceData, setFormView, setSuccessView, showForm, showForm, suppressValidationcurrentFormObject, getCommand, getErrorsForNewForm, getFormSessionAttributeName, getFormSessionAttributeName, handleInvalidSubmit, handleRequestInternal, isBindOnNewForm, isFormSubmission, isSessionForm, onBindOnNewForm, onBindOnNewForm, setBindOnNewForm, setSessionForm, showForm, showForm, showNewFormbindAndValidate, checkCommand, createBinder, createCommand, getBindingErrorProcessor, getCommandClass, getCommandName, getMessageCodesResolver, getPropertyEditorRegistrars, getValidator, getValidators, getWebBindingInitializer, initApplicationContext, initBinder, isValidateOnBinding, onBind, onBind, onBindAndValidate, prepareBinder, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators, setWebBindingInitializer, suppressBinding, suppressValidation, suppressValidation, useDirectFieldAccesshandleRequest, isSynchronizeOnSession, setSynchronizeOnSessionapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprotected Object formBackingObject(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
org.springframework.web.servlet.mvc.AbstractFormControllerThe properties of the form object will correspond to the form field values in your form view. This object will be exposed in the model under the specified command name, to be accessed under that name in the view: for example, with a "spring:bind" tag. The default command name is "command".
Note that you need to activate session form mode to reuse the form-backing object across the entire form workflow. Else, a new instance of the command class will be created for each submission attempt, just using this backing object as template for the initial form.
The default implementation calls BaseCommandController.createCommand(),
creating a new empty instance of the specified command class.
Subclasses can override this to provide a preinitialized backing object.
formBackingObject in class org.springframework.web.servlet.mvc.AbstractFormControllerrequest - current HTTP requestjavax.servlet.ServletExceptionBaseCommandController.setCommandName(java.lang.String),
BaseCommandController.setCommandClass(java.lang.Class),
BaseCommandController.createCommand()Copyright © 2015 OpenMRS Inc.. All rights reserved.