Announcement Announcement Module
No announcement yet.
Support for double submit handling? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Support for double submit handling?

    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?

  • #2
    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.