Yes, that's very right.  Store the name of the page, and re-acquire a
new instance as needed, but don't store a direct reference.

On 10/31/05, Thomas Christensen <[EMAIL PROTECTED]> wrote:
> After thinking about it I suddenly realized that placing an IPage in
> a session persisted property for later use could be the wrong
> approach. This would dedicate a certain instance of a page to this
> user's session. This leads to: IPage object may not be placed in
> session persisted properties.
>
> Is this assumption correct?
>
> Cheers
>
> Thomas
>
> On 31/10/2005, at 9.47, Thomas Christensen wrote:
>
> > Hi
> >
> > Env:
> > WebLogic 9, Java5, Mac OSX, Tapestry 4  beta 11.
> >
> > App:
> > Two pages, both extending a custom base page that implements
> > PageValidationListener which extracts the current Locale from
> > engine and puts it on a Thread Local:
> >
> >             IRequestCycle cycle = getRequestCycle();
> >             IEngine engine = cycle.getEngine();
> >             Locale locale = engine.getLocale();
> >             RequestLocalContext.setLocale(locale);
> >
> > Flow:
> > Navigate from first page to second page, specifying in a session
> > persistent property on the second page that a "back" link leads to
> > the first page again. I use IPage objects here not just a string.
> > From the second page, activating
> > the back link (direct link) causes the second page's
> > PageValidationListener to be invoked without a problem, but then
> > the activation continues to the first page's PagevalidationListener
> > and that fails with cycle being null!
> >
> > Is it a bug? Should event.getRequestCycle and getRequestCycle in a
> > PageValidationListener not always be available?
> >
> > if this is something no one else has seen I'll try and put together
> > a sample set of pages: two pages with page validation using cycle,
> > one activating the one.
> >
> > Cheers
> >
> > Thomas
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to