The Synchronizer Token Page

One approach to solving the duplicate submission problem is to use the Synchronizer Token pattern from Core J2EE Patterns by Alur, Crupi and Malks, as discussed here.

As a solution to multiple clicks, the synchronizer token pattern has pros and cons...

Pros. Cons. Tapestry exceptions If you get an exception saying a property "has already been accounted for by the element at Annotation" then restart JBoss with -Dorg.apache.tapestry.disable-caching=false before using this page.
You have ordered widgets.

The listeners for these links ignore resubmission:
Click to Order 1 widget (2 seconds delay):  LinkSubmit DirectLink
Click to Refresh page (0 seconds delay): LinkSubmit DirectLink

The listeners for these links prevent resubmission:
Click to Order 1 widget (2 seconds delay): LinkSubmit DirectLink
Click to Refresh page (0 seconds delay): LinkSubmit DirectLink
To Login