public class ClientProfileController extends BaseFormController
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientProfileController.ActionType
The action type the controller supports.
|
DEFAULT_COMMAND_NAME| Constructor and Description |
|---|
ClientProfileController() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.servlet.ModelAndView |
handleOnSubmit(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object command,
org.springframework.validation.BindException errors)
Is called by
BaseFormController.onSubmit(HttpServletRequest, HttpServletResponse, Object, BindException)
Submit callback with all parameters. |
protected void |
initBinder(javax.servlet.http.HttpServletRequest request,
org.springframework.web.bind.ServletRequestDataBinder binder)
Override to disable autogrowth.
|
protected Map |
referenceData(javax.servlet.http.HttpServletRequest request,
Object command,
org.springframework.validation.Errors errors) |
void |
setAction(ClientProfileController.ActionType actionType)
Sets the action for the controller instance.
|
void |
setInitBinderRequired(boolean initBinderRequired)
Set whether the binder initialization should be run.
|
getLocale, isRefuseOnExternalAuthentication, onSubmit, onSubmit, onSubmit, setRefuseOnExternalAuthentication, showFormdoSubmitAction, getFormView, getSuccessView, isFormChangeRequest, isFormChangeRequest, onFormChange, onFormChange, processFormSubmission, referenceData, setFormView, setSuccessView, 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, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprotected org.springframework.web.servlet.ModelAndView handleOnSubmit(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object command,
org.springframework.validation.BindException errors)
throws Exception
BaseFormController.onSubmit(HttpServletRequest, HttpServletResponse, Object, BindException)
The default implementation delegates to BaseFormController.onSubmit(Object, BindException). For simply
performing a submit action and rendering the specified success view, consider implementing
SimpleFormController.doSubmitAction(java.lang.Object) rather than an onSubmit variant.
Subclasses can override this to provide custom submission handling like storing the object to the database. Implementations can also perform custom validation and call showForm to return to the form. Do not implement multiple onSubmit methods: In that case, just this method will be called by the controller.
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.
handleOnSubmit in class BaseFormControllerrequest - current servlet requestresponse - current servlet responsecommand - form object with request parameters bound onto iterrors - Errors instance without errors (subclass can add errors if it wants to)nullException - in case of errorsBaseFormController.onSubmit(Object, BindException),
SimpleFormController.doSubmitAction(java.lang.Object),
BaseFormController.showForm(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.springframework.validation.BindException),
Errors,
BindException.getModel()protected void initBinder(javax.servlet.http.HttpServletRequest request,
org.springframework.web.bind.ServletRequestDataBinder binder)
throws javax.servlet.ServletException
initBinder in class BaseFormControllerjavax.servlet.ServletExceptionprotected Map referenceData(javax.servlet.http.HttpServletRequest request, Object command, org.springframework.validation.Errors errors) throws Exception
referenceData in class org.springframework.web.servlet.mvc.SimpleFormControllerExceptionpublic void setAction(ClientProfileController.ActionType actionType)
actionType - the action to setpublic void setInitBinderRequired(boolean initBinderRequired)
initBinderRequired - true if the binder initialization should be run, false otherwiseCopyright © 2019 Communote team. All rights reserved.