public class PersonFormController
extends org.springframework.web.servlet.mvc.SimpleFormController
PatientFormController| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log
Logger for this class and subclasses
|
DEFAULT_COMMAND_NAME| Constructor and Description |
|---|
PersonFormController() |
| Modifier and Type | Method and Description |
|---|---|
static <P extends Person> |
getMiniPerson(P person,
String name,
String gender,
String date,
String age)
Add the given name, gender, and birthdate/age to the given Person
|
protected void |
initBinder(javax.servlet.http.HttpServletRequest request,
org.springframework.web.bind.ServletRequestDataBinder binder)
Allows for other Objects to be used as values in input tags.
|
protected org.springframework.web.servlet.ModelAndView |
processFormSubmission(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object obj,
org.springframework.validation.BindException errors) |
protected Person |
setupFormBackingObject(Person person)
Setup the person object.
|
protected Map |
setupReferenceData(Map map,
Person person)
Setup the reference map object.
|
doSubmitAction, getFormView, getSuccessView, isFormChangeRequest, isFormChangeRequest, onFormChange, onFormChange, onSubmit, onSubmit, onSubmit, referenceData, referenceData, setFormView, setSuccessView, showForm, showForm, suppressValidationcurrentFormObject, formBackingObject, 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, 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, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprotected static final org.apache.commons.logging.Log log
protected void initBinder(javax.servlet.http.HttpServletRequest request,
org.springframework.web.bind.ServletRequestDataBinder binder)
throws Exception
initBinder in class org.springframework.web.servlet.mvc.BaseCommandControllerExceptionBaseCommandController.initBinder(javax.servlet.http.HttpServletRequest,
org.springframework.web.bind.ServletRequestDataBinder)protected org.springframework.web.servlet.ModelAndView processFormSubmission(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object obj,
org.springframework.validation.BindException errors)
throws Exception
processFormSubmission in class org.springframework.web.servlet.mvc.SimpleFormControllerExceptionAbstractFormController.processFormSubmission(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.Object,
org.springframework.validation.BindException)protected Person setupFormBackingObject(Person person)
person - protected Map setupReferenceData(Map map, Person person) throws Exception
person - Exceptionpublic static <P extends Person> void getMiniPerson(P person, String name, String gender, String date, String age)
P - Should be a Patient or User objectperson - name - gender - date - birthdateage - Copyright © 2018 OpenMRS LLC.. All Rights Reserved.