I'm trying to implement a simple, 3-step wizard form by extending the AbstractWizardFormController (yes, I know about WebFlow . However, I would like to avoid creating a Session on the server if the user never goes past page 0.
It is obvious that for a Wizard controller we need to eventually put the command object in the session, but it currently puts the page number there, even for the initial page. Given that the default behavior is to show page 0 on a GET request, it seems logical to avoid this step.
An option is to use a different controller to show the first page the first time (without creating a session) and then submit into the Wizard controller's second page. However, IMO this is not a very elegant solution and simply clutters the ApplicationContext xml file with unnecessary controllers.
Has anybody else encountered this use case/requirement? Any suggestions?
By the way, there is an unnecessary Integer creation statement in AbstractWizardFormController line 335 for Spring v1.1.5-release