public class ConceptFormController
extends org.springframework.web.servlet.mvc.SimpleFormController
Concept
Modifier and Type | Class and Description |
---|---|
class |
ConceptFormController.ConceptFormBackingObject
Class that represents all data on this form
|
DEFAULT_COMMAND_NAME
Constructor and Description |
---|
ConceptFormController() |
Modifier and Type | Method and Description |
---|---|
protected ConceptFormController.ConceptFormBackingObject |
formBackingObject(javax.servlet.http.HttpServletRequest request)
This is called prior to displaying a form for the first time.
|
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 |
onSubmit(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object obj,
org.springframework.validation.BindException errors)
The onSubmit function receives the form/command object that was modified by the input form
and saves it to the db
|
protected org.springframework.web.servlet.ModelAndView |
processFormSubmission(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object object,
org.springframework.validation.BindException errors) |
protected Map<String,Object> |
referenceData(javax.servlet.http.HttpServletRequest request)
Called prior to form display.
|
doSubmitAction, getFormView, getSuccessView, isFormChangeRequest, isFormChangeRequest, onFormChange, onFormChange, onSubmit, onSubmit, referenceData, setFormView, setSuccessView, showForm, showForm, suppressValidation
currentFormObject, getCommand, getErrorsForNewForm, getFormSessionAttributeName, getFormSessionAttributeName, handleInvalidSubmit, handleRequestInternal, isBindOnNewForm, isFormSubmission, isSessionForm, onBindOnNewForm, onBindOnNewForm, setBindOnNewForm, setSessionForm, showForm, showForm, showNewForm
bindAndValidate, 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, useDirectFieldAccess
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
protected void initBinder(javax.servlet.http.HttpServletRequest request, org.springframework.web.bind.ServletRequestDataBinder binder) throws Exception
initBinder
in class org.springframework.web.servlet.mvc.BaseCommandController
Exception
BaseCommandController.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 object, org.springframework.validation.BindException errors) throws Exception
processFormSubmission
in class org.springframework.web.servlet.mvc.SimpleFormController
Exception
AbstractFormController.processFormSubmission(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.Object,
org.springframework.validation.BindException)
protected org.springframework.web.servlet.ModelAndView onSubmit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object obj, org.springframework.validation.BindException errors) throws Exception
onSubmit
in class org.springframework.web.servlet.mvc.SimpleFormController
Exception
SimpleFormController.onSubmit(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.Object,
org.springframework.validation.BindException)
protected ConceptFormController.ConceptFormBackingObject formBackingObject(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
formBackingObject
in class org.springframework.web.servlet.mvc.AbstractFormController
javax.servlet.ServletException
AbstractFormController.formBackingObject(javax.servlet.http.HttpServletRequest)
protected Map<String,Object> referenceData(javax.servlet.http.HttpServletRequest request) throws Exception
referenceData
in class org.springframework.web.servlet.mvc.SimpleFormController
Exception
SimpleFormController.referenceData(javax.servlet.http.HttpServletRequest)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.