R4R
Right Place For Right Person TM
R4R Java Spring Spring2.5 MVC AbstractWizardFormController in Spring MVC
previous

Home

Next

AbstractWizardFormController in Spring MVC

This controller provide the facility for typical wizard-style workflows. It also for classic forms, wizards have more than one form view page. it also act an actions instead of one single submit action
Syntax:-

public abstract class AbstractWizardFormController
extends AbstractFormController

This controller also provide the following method:-

setPages:-

public final void setPages(String[] pages)

getPages:-

public final String[] getPages()

getPageCount:-

protected final int getPageCount()


getNrOfPages:-

protected final int getNrOfPages()

setPageAttribute:-

public final void setPageAttribute
(String pageAttribute)

getPageAttribute:-

public final String getPageAttribute()

setAllowDirtyBack:-

public final void setAllowDirtyBack
(boolean allowDirtyBack)

isAllowDirtyBack:-

public final boolean isAllowDirtyBack()

setAllowDirtyForward:-

public final void setAllowDirtyForward
(boolean allowDirtyForward)

isAllowDirtyForward:-

public final boolean isAllowDirtyForward()

onBindAndValidate:-

protected final void onBindAndValidate
(HttpServletRequest request,Object command,
BindException errors)throws Exception

onBindAndValidate:-

protected void onBindAndValidate
(HttpServletRequest request,Object command,
BindException errors,int page)throws Exception

isFormSubmission:-

protected boolean isFormSubmission
(HttpServletRequest request)

referenceData:-

protected final Map referenceData
(HttpServletRequest request,Object command,
Errors errors)throws Exception

referenceData:-

protected Map referenceData(HttpServletRequest
request,Object command,Errors errors,int page)
throws Exception

referenceData:-

protected Map referenceData(HttpServletRequest
request,int page)throws Exception

showForm:-

protected final ModelAndView showForm
(HttpServletRequest request,HttpServletResponse
response,BindException errors)throws Exception

showPage:-

protected final ModelAndView showPage
(HttpServletRequest request,BindException errors,
int page)throws Exception

getInitialPage:-

protected int getInitialPage(HttpServletRequest
request,Object command)

getInitialPage:-

protected int getInitialPage(HttpServletRequest
request)

getPageSessionAttributeName:-

protected String getPageSessionAttributeName
(HttpServletRequest request)

getPageSessionAttributeName:-

protected String getPageSessionAttributeName()

handleInvalidSubmit:-

protected ModelAndView handleInvalidSubmit
(HttpServletRequest request,HttpServletResponse
response)throws Exception

processFormSubmission:-

protected final ModelAndView processFormSubmission
(HttpServletRequest request,HttpServletResponse
response,Object command,BindException errors)
throws Exception

getCurrentPage:-

protected int getCurrentPage(HttpServletRequest
request)

isFinish:-

protected boolean isFinish(HttpServletRequest
request)

isCancel:-

protected boolean isCancel(HttpServletRequest
request)

getTargetPage:-

protected int getTargetPage(HttpServletRequest
request,Object command,Errors errors,int
currentPage)

getTargetPage:-

protected int getTargetPage(HttpServletRequest
request,int currentPage)

validatePage:-

protected void validatePage(Object command,
Errors errors,int page,boolean finish)

validatePage:-

protected void validatePage(Object command,
Errors errors,int page)

processFinish:-

protected abstract ModelAndView processFinish
(HttpServletRequest request,HttpServletResponse
response,Object command,BindException errors)
throws Exception

processCancel:-

protected ModelAndView processCancel
(HttpServletRequest request,HttpServletResponse
response,Object command,BindException errors)
throws Exception

Example of AbstractWizaredFormController in Spring MVC
 

previous

Home

Next


Tolal:0 Click:
Show All Comments

Post Your Comments

Your Name:

Your Email ID :
Comments :
URL
  =* Enter SUM

[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]
[an error occurred while processing this directive]