webtier@glassfish.java.net

Re: [webtier] Flash scope issue

From: Ed Burns <Ed.Burns_at_Sun.COM>
Date: Tue, 17 Nov 2009 09:02:49 -0800

>>>>> On Fri, 23 Oct 2009 06:54:04 -0700 (PDT), webtier_at_javadesktop.org said:

SH> Hello,
SH> I used the flash scope the following way:
SH> the page

[...]

SH> I have 3 questions:
SH> Is the flash scope a mummy flash scope which comes to live again?

Probably not.

SH> Did I misunderstood how to use it?

You are using it correctly.

I have verified that your scenario works as expected with the latest svn
HEAD of mojarra. I fixed a bug in the flash yesterday, so perhaps with
more recent code your problem will be resolved.

The war I used is at
<http://mediacast.sun.com/users/edburns00/media/jsf-flash.war>.

Deploy and visit http://localhost:8080/jsf-flash/faces/flash12.xhtml

SH> Why is the flash scope not saved in the session instead of creating
SH> another cookie?

One use-case for the flash was for those users that didn't want to
pollute the session at all. Therefore, my implementation lives in
Application scope and is designed to prune itself regularly using an LRU
scheme.

Ed

-- 
| ed.burns_at_sun.com  | office: 408 884 9519 OR x31640
| homepage:         | http://ridingthecrest.com/