PDA

View Full Version : Spring MVC and Subdialogs


Heiko
Jun 12th, 2007, 06:05 PM
Hi,
in my application, I have a number of subdialoges, meaning dialogs that are called by another dialog which should be shown again after the subdialog is closed. I wonder if there is any common way to deal with such a situation in Spring Web MVC. I tried the "CancellableFormController", but this one is restricted to a static definition of the "cancelView". Thus, one can not call the same subdialog from different main dialogs. Also, there is no strategy for exchanging data between the main dialog and its subdialog. Any help appreciated, thanks in advance,
Heiko

Jörg Heinicke
Jun 13th, 2007, 08:36 AM
Welcome in the world of stateless communication :)

Since HTTP is stateless all has to be added on top of it. Pure HTML and forms don't have any state handling, Spring provides it only for simple cases (in the most trivial case SimpleFormController with sessionForm="true" is sufficient, otherwise AbstractWizardFormController might help). For everything that goes beyond those simple cases you have to look for other frameworks - or do it programmatically. Luckily, the Spring family has Spring Web Flow to offer.

Jörg