webtier@glassfish.java.net

Re: [webtier] JSF: variable results with flash, page templates, post-redirect-get

From: Ed Burns <edburns_at_sun.com>
Date: Fri, 13 Aug 2010 12:55:11 -0700

>>>>> On Fri, 13 Aug 2010 12:22:07 -0700, Ed Burns <edburns_at_sun.com> said:

>>>>> On Mon, 09 Aug 2010 12:21:27 PDT, webtier_at_javadesktop.org said:
BH> The sort of thing I'm trying to do is just pass information from one
BH> page to another, an analogy would be to select a department from page 1,
BH> click on the manage employees button, go to page 2 which shows a list of
BH> employees. The problem I'm experiencing is that sometimes page 2
BH> successfully knows which department it's supposed to be listing
BH> employees for, sometimes not.

EB> Right, this "master/detail" use-case is exactly the rationale for the
EB> flash scope.

BH> I've written a test application consisting of 4 files, index.xhtml,
BH> next.xhtml, template.xhtml & BackingBean.java. the index.xhtml has an
BH> input field, you type some text in which is stored directly in the
BH> flash, it also has a preRenderView event, the listener which puts two

EB> I'm going to spend the next 30 minutes debugging this and I'll get back
EB> to you.

Ok, I tried this with the latest Mojarra HEAD running in GlassFish 3.0
FCS.

I am presently uploading the GlassFish 3.0 zip with the Mojarra HEAD
installed into it, as well as a zip of your sample as a maven project,
to this area on java.net

https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=12360&expandFolder=12360&folderID=12073

When the upload completes, God willing, you'll have something you can
download and run.

I was unable to reproduce the problem with this stack. Can you please
try it and get back to me?

Thanks,

Ed

-- 
| edward.burns_at_oracle.com | office: +1 407 458 0017
| homepage:               | http://ridingthecrest.com/
| 03 work days until JSF 2.1 Milestone 2