PDA

View Full Version : Support for double submit handling?



deanholdren
May 25th, 2005, 04:25 PM
AbstractFormController handles the "double submit" problem (in handleRequestInternal) if you are using a "sessionForm" (or an AbstractWizardFormController). Is there similar support in Spring Web Flow with the FormAction?

Keith Donald
May 25th, 2005, 09:26 PM
If a submit triggers a end state to enter when not using continuations, there is no possibility of duplicate submit -- the executing flow will be cleaned up and no longer accessible. So that's a built in feature there.

Now if that isn't the case or you're using continuations, other strategies must be used. The TransactionSynchronizer interface is there to allow you to demarcate application transactions. Right now there is one implementation: a token-based mechanism. See the 'itemList' sample that uses it.

Keith