Hi,
I currently have an administration section for a site I have created,
and I am one of the main users. I have set it up so that that there is a
status message CFC in the sesssion scope and the application can queue
messages for display, which the views pick up (they display the
message(s) and remove them from the queue). Quite a neato solution, and
it works well over 302 redirects (cflocation) as well. Messages are of
the kind: "please enter the required fields", "Entry saved
successfully", "you need to login to access this part of the
application".
Now - as a power user (maybe not the typical/average user of a site like
this) I often do things in parallell, with multiple windows (ah! they
joy of a tabbed browser). This lets me open several windows at once and
compare the entries and to start on a some other task while I wait for
an upload to finish.
Since the status message service resides in the session scope, the
status messages don't necessarily show up in the right window (the
server and the session scope doesn't really recognize the concept of
windows) - so one request can queue messages, but they are displayed in
another request. (think of it this way: you'd want the 'entry saved
successfully' message to be displayed in the window you did the upload,
not some other window).
Any suggestions on how to do solve this? I think the solution would have
to be to use some requestID as a key in the status message service
(still in the session scope) and pass this around in any cflocations.
/Hugo
--
Hugo Ahlenius
-------------------------------------------------------------
Hugo Ahlenius E-Mail: [EMAIL PROTECTED]
Project Officer Phone: +46 8 412 1427
UNEP GRID-Arendal Fax: +46 8 723 0348
Stockholm Office Mobile: +46 733 467111
WWW: http://www.grida.no
Skype: callto:fraxxinus
-------------------------------------------------------------
###########################################This message has been scanned by
F-Secure Anti-Virus for Microsoft
Exchange.Formore information, connect to http://www.F-Secure.com/
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]