cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13795] New: - [feature request] resubmit handling in XMLForm
Date Sun, 20 Oct 2002 16:19:04 GMT
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


Mime
View raw message