I'm trying to catch an error during validation and forward to another page. Because the error occours during the setup stage. When the AjaxDirectService does the cycle.activate(renderPage) my PageValidateListener gets invoked and it throws a page redirect exception which is not caught by Tacos since there is no try block around the cycle.activate(renderPage) call. This causes tapestry to take over rendering and return the HTML of the redirected page instead of the necessary javascript to force the redirect.
On 9/6/06, andyhot <[EMAIL PROTECTED]> wrote: > What's the point of calling > > cycle.activate(page) > > inside an 'ajax' listener ? > > What would you expect from an ajax framework to do in that case? > > IIRC, Tacos current behavior is to trap the cycle.activate calls and > return an > ajax response that instructs the client to redirect to that new page. > > > Daniel Tabuenca wrote: > > The Tapestry documentation for page events states this for the > > PgeValidateListener: > > > > When a page is activated (selected to render the reponse). Throw > > PageRedirectException to activate a different page. > > > > However, in tacos the PageRedirectException isonly caught on the > > invocation of the listeners. What would be the cleanest way to change > > AjaxDirectServiceImpl to catch the Redirects when doing > > cycle.activate(page)? > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Tacos-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/tacos-devel > > > > > > > -- > Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr > Tapestry / Tacos developer > Open Source / J2EE Consulting > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Tacos-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tacos-devel > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Tacos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tacos-devel
