Hey all!
I’ve finally gotten a chance to really start getting into ColdBox.
I’m just starting off simple, getting something to work and then progressively refactoring as I build it out.
During the dark ages of my non-ColdBox ways there’s the technique I use with update forms:
- Page.cfm would do something like a action=“HandleUpdate.cfm”
- HandleUpdate.cfm would then process the form, and cflocation back to the Page.cfm
The benefit is that if the user hits reload, doesn’t resend the form vars, it simply reloads the page. Versus Page.cfm doing a action=“Page.cfm” and handling the update directly, if the user hits reload at that point the browser will go “do you want to resend the form data?”
With my little ColdBox app that I’m building, I’ve got a simple List/Add/Edit CRUD going on, and it works fine. But because the browser sees that its all handled by index.cfm, after the user does an update, if they hit a browser reload it’ll resend the form vars (and cause another update to occur).
Is there a way to accomplish the technique used in my old school ways?
Thx!