Request collection after submitting a form.. then refreshing the page

5 views
Skip to first unread message

precator

unread,
Dec 30, 2009, 2:19:37 PM12/30/09
to ColdBox Platform
I seem to lose the request collection. My values that were there are
no longer there after refreshing the page. Am I doing something
wrong?

Greg

Judah McAuley

unread,
Dec 30, 2009, 2:30:51 PM12/30/09
to col...@googlegroups.com
When you try to refresh is it prompting you telling you that you are
resubmitting the form again? If not, then you aren't resubmitting the
form and therefore the values that are being sent by the form wouldn't
be present. You've been redirected to another request and those values
aren't being sent unless you explicitly persist them in the Flash Ram
or some such. This is, generally speaking, desired behavior because
most people don't want form processing to happen multiple times on a
page refresh resulting in, say, an Order being placed twice because a
user refreshes the Receipt page.

Judah

precator

unread,
Dec 30, 2009, 2:53:33 PM12/30/09
to ColdBox Platform
Do I do something like this If I want to persist the whole request
collection?

<cfset setNextEvent
(event='snapshot.dspManageImplementationEvent',persist='rc')>

> > Greg- Hide quoted text -
>
> - Show quoted text -

Judah McAuley

unread,
Dec 30, 2009, 3:05:02 PM12/30/09
to col...@googlegroups.com
That depends on what you're trying to accomplish. Could you lay out
the flow of the events and what you want to enable? Like I said,
resubmitting the whole form on a processing page is generally an
undesired thing, so it is more a matter of trying to figure out what
you want to accomplish and then figuring out the best way to do it.

Judah

> --
> You received this message because you are subscribed to the Google Groups "ColdBox: A ColdFusion Framework" group.
> To post to this group, send email to col...@googlegroups.com
> To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
> For more options, visit this group at http://groups-beta.google.com/group/coldbox
> For more information, visit http://www.luismajano.com/projects/coldbox
> For Documentation, visit http://ortus.svnrepository.com/coldbox/trac.cgi

Reply all
Reply to author
Forward
0 new messages