You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Jue <te...@gmail.com> on 2008/09/25 20:45:52 UTC

T5 OnException or page redirection fails when using Grid inPlace

Using T5.0.14

Just found this after a couple hours.

Case:

User Logs on login page, user ASO created
Page with Grid is rendered, using inPlace, all is well.
User session times out, or logs out in another window. (doesn't matter
which)
User clicks on a sort button on the Grid, and the page hosting the grid
requires the user session.

We expect that the page with a grid would allow redirection to the login
page, but when using inPlace, we get a " Page must be specified before root
render command." error when an onActivate or onException page redirection
occurs.

We actually get the same page, with no changes.

[DEBUG] BaseReportPage [ EXIT] onActivate
[com.mycompany.myapp.wui.tapestry.pages.authentication.LoginPage@e0142c]
[DEBUG] SOCMPPage Dispatch event: ComponentEvent[exception from (self)]
[INFO] TimingFilter Request time: 15 ms
[ERROR] RequestExceptionHandler Processing of request failed with uncaught
exception: Page must be specified before root render command.
org.apache.tapestry5.runtime.ComponentEventException: Page must be specified
before root render command.
    at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1054)
    at
org.apache.tapestry5.internal.services.AjaxComponentEventRequestHandler.handle(AjaxComponentEventRequestHandler.java:68)
    at
$ComponentEventRequestHandler_11c9acea066.handle($ComponentEventRequestHandler_11c9acea066.java)
    at
org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
    at
$ComponentEventRequestHandler_11c9acea067.handle($ComponentEventRequestHandler_11c9acea067.java)
    at
org.apache.tapestry5.services.TapestryModule$38.handle(TapestryModule.java:1974)
    at
$ComponentEventRequestHandler_11c9acea067.handle($ComponentEventRequestHandler_11c9acea067.java)
    at
$ComponentEventRequestHandler_11c9ace9e6d.handle($ComponentEventRequestHandler_11c9ace9e6d.java)
    at
org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:130)
    at $Dispatcher_11c9ace9e6f.dispatch($Dispatcher_11c9ace9e6f.java)
    at $Dispatcher_11c9ace9e60.dispatch($Dispatcher_11c9ace9e60.java)
    at
org.apache.tapestry5.services.TapestryModule$13.service(TapestryModule.java:953)
...