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]

Reply via email to