You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/10/20 18:19:04 UTC

DO NOT REPLY [Bug 13795] New: - [feature request] resubmit handling in XMLForm

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13795>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13795

[feature request] resubmit handling in XMLForm

           Summary: [feature request] resubmit handling in XMLForm
           Product: Cocoon 2
           Version: Current CVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: ivelin@apache.org


AbstractXMLFormAction needs to have additional logic to handle cases when the 
client resubmits the same form twice (via refresh or back button).
This is especially useful in some cases.
Provides additional automated protection against things like:
1) account lockout - if a login form is resubmitted by accident multiple times.
2) phantom charges - for the same item if the checkout confirm form is 
submitted multiple times.
3) any other case where incremental(decremental) logic is applied.

Proposed solution is to allow the action to take an extra parameter:

<map:parameter name="xmlform-page-resubmit" value="home"/>

The AbstractXMLFormAction can automatically detect a resubmit and set the 
value of the "page" objectMap parameter to the value of the "xmlform-page-
resubmit" parameter. This will skip any processing in the extending Action, 
thus protecting from side effects. It also relieves the extending Action from 
responsibility to handle resubmit cases.

Here is a reference to possible algorithms for implementing a resubmit capture:

http://www.mail-archive.com/cocoon-dev@xml.apache.org/msg14171.html

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org