You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jeremy <jk...@jkassis.com> on 2005/10/11 05:30:52 UTC

T4 session scope persistence strategy bug? ( tacos progressbar )

In a listener on page A, I'm loading page B from the cycle, setting one of
page B's properties (declared with session-style persistence) and then
activating it.

 

But subsequent invocations of a listener on page B show a null value for the
persistent property.

 

I'm guessing that the session-scope persistence strategy is storing the
property in the scope of page A instead of page B.

 

More specifically, I'm trying to activate a page the displays the tacos
ProgressBar like this:

 

                        ProgressPage progressPage = (ProgressPage) cycle

                                                .getPage("ProgressPage");

                        ProgressWorkThread worker = new
ProgressWorkThread();

                        worker.start();

                        progressPage.setProgressWorker(worker);

 
progressPage.setStartTime(System.currentTimeMillis());

                        cycle.activate(progressPage);

 

The progressWorker property is declared in the .page file with
persist="session".

 

The same code, when invoked from a listener method of ProgressPage works
just fine.

 

Anybody seen this before?

 

Best,

Jeremy