webERP Forum
Form Re-Submission Errors & PRG Patterns - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Development Discussion & Specification (http://www.weberp.org/forum/forumdisplay.php?fid=10)
+--- Thread: Form Re-Submission Errors & PRG Patterns (/showthread.php?tid=8078)



Form Re-Submission Errors & PRG Patterns - afcouling - 02-06-2018

Although I should know better, it does annoy me when I get the form re-submission error alert, after clicking on the browser back button.

Has anyone considered implementing the 'PRG Pattern' (Post/Redirect/Get), to reduce the likelihood of the above occurring?

I found this relevant article on form processing.

Are there any views on the benefits, drawbacks, and difficulty of implementation?

Andy.


RE: Form Re-Submission Errors & PRG Patterns - TurboPT - 02-06-2018

Hmmm, not sure, I'll have to read that article first, and maybe even give it a try on a form, or two, to see how it goes.


RE: Form Re-Submission Errors & PRG Patterns - afcouling - 02-21-2018

Hi Paul, I'm keen to get your view on this, but of course, appreciate that you're real busy and focused on other areas.

Andy.


RE: Form Re-Submission Errors & PRG Patterns - TimSchofield - 02-21-2018

My understanding is (though I may be wrong) that changing to using the PRG would be very intrusive, changing fundamentally the way most of the scripts operate? If so, then this is something we have in the past striven to avoid.

Tim


RE: Form Re-Submission Errors & PRG Patterns - afcouling - 02-21-2018

Yes, adding the time stamp and 303 redirect to existing scripts would be a lengthy task.

If there is consensus on the benefit of the technique, then perhaps we adopt it for new scripts going forward, and gradually work our way thru the existing scripts as time and enthusiasm permits.

Andy.