magoffin.matt.ma2.web
Class RegisterForm

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.support.WebContentGenerator
              extended by org.springframework.web.servlet.mvc.AbstractController
                  extended by org.springframework.web.servlet.mvc.BaseCommandController
                      extended by org.springframework.web.servlet.mvc.AbstractFormController
                          extended by org.springframework.web.servlet.mvc.AbstractWizardFormController
                              extended by magoffin.matt.ma2.web.AbstractWizardForm
                                  extended by magoffin.matt.ma2.web.RegisterForm
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.servlet.mvc.Controller

public class RegisterForm
extends AbstractWizardForm

Wizard form controller for registering as a new user.

userBiz
The UserBiz to use.

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Field Summary
 
Fields inherited from class org.springframework.web.servlet.mvc.AbstractWizardFormController
PARAM_CANCEL, PARAM_FINISH, PARAM_PAGE, PARAM_TARGET
 
Fields inherited from class org.springframework.web.servlet.mvc.BaseCommandController
DEFAULT_COMMAND_NAME
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
HEADER_CACHE_CONTROL, HEADER_EXPIRES, HEADER_PRAGMA, METHOD_GET, METHOD_HEAD, METHOD_POST
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
RegisterForm()
           
 
Method Summary
protected  java.lang.Object formBackingObject(javax.servlet.http.HttpServletRequest request)
           
 UserBiz getUserBiz()
           
protected  org.springframework.web.servlet.ModelAndView processFinish(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object command, org.springframework.validation.BindException errors)
           
protected  java.util.Map referenceData(javax.servlet.http.HttpServletRequest request, java.lang.Object command, org.springframework.validation.Errors errors, int page)
           
 void setUserBiz(UserBiz userBiz)
           
protected  void validatePage(java.lang.Object command, org.springframework.validation.Errors errors, int page)
           
 
Methods inherited from class magoffin.matt.ma2.web.AbstractWizardForm
getCancelView, getDomainObjectFactory, getSuccessView, getSystemBiz, getWebHelper, initApplicationContext, setCancelView, setDomainObjectFactory, setSuccessView, setSystemBiz, setWebHelper
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractWizardFormController
getCurrentPage, getInitialPage, getInitialPage, getPageAttribute, getPageCount, getPageCount, getPages, getPageSessionAttributeName, getPageSessionAttributeName, getTargetPage, getTargetPage, getViewName, handleInvalidSubmit, isAllowDirtyBack, isAllowDirtyForward, isCancel, isCancelRequest, isFinish, isFinishRequest, isFormSubmission, onBindAndValidate, onBindAndValidate, postProcessPage, processCancel, processFormSubmission, referenceData, referenceData, setAllowDirtyBack, setAllowDirtyForward, setPageAttribute, setPages, showForm, showPage, validatePage
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractFormController
currentFormObject, getCommand, getErrorsForNewForm, getFormSessionAttributeName, getFormSessionAttributeName, handleRequestInternal, isBindOnNewForm, isSessionForm, onBindOnNewForm, onBindOnNewForm, setBindOnNewForm, setSessionForm, showForm, showForm, showNewForm
 
Methods inherited from class org.springframework.web.servlet.mvc.BaseCommandController
bindAndValidate, checkCommand, createBinder, createCommand, getBindingErrorProcessor, getCommandClass, getCommandName, getMessageCodesResolver, getPropertyEditorRegistrars, getValidator, getValidators, initBinder, isValidateOnBinding, onBind, onBind, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators, suppressBinding, suppressValidation
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
 
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseExpiresHeader
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, isContextRequired
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterForm

public RegisterForm()
Method Detail

formBackingObject

protected java.lang.Object formBackingObject(javax.servlet.http.HttpServletRequest request)
                                      throws java.lang.Exception
Overrides:
formBackingObject in class org.springframework.web.servlet.mvc.AbstractFormController
Throws:
java.lang.Exception

referenceData

protected java.util.Map referenceData(javax.servlet.http.HttpServletRequest request,
                                      java.lang.Object command,
                                      org.springframework.validation.Errors errors,
                                      int page)
                               throws java.lang.Exception
Overrides:
referenceData in class org.springframework.web.servlet.mvc.AbstractWizardFormController
Throws:
java.lang.Exception

validatePage

protected void validatePage(java.lang.Object command,
                            org.springframework.validation.Errors errors,
                            int page)
Overrides:
validatePage in class org.springframework.web.servlet.mvc.AbstractWizardFormController

processFinish

protected org.springframework.web.servlet.ModelAndView processFinish(javax.servlet.http.HttpServletRequest request,
                                                                     javax.servlet.http.HttpServletResponse response,
                                                                     java.lang.Object command,
                                                                     org.springframework.validation.BindException errors)
                                                              throws java.lang.Exception
Specified by:
processFinish in class org.springframework.web.servlet.mvc.AbstractWizardFormController
Throws:
java.lang.Exception

getUserBiz

public UserBiz getUserBiz()
Returns:
Returns the userBiz.

setUserBiz

public void setUserBiz(UserBiz userBiz)
Parameters:
userBiz - The userBiz to set.