I'll give the first option a try. The second option would surely seem studier and more flexible if it could be implemented without too many magic tricks.
On 9/7/06, andyhot <[EMAIL PROTECTED]> wrote: > Daniel Tabuenca wrote: > > Yes, the ajax response is just the html page that it should be > > redirecting too. Dojo says it can't find an ajax block or parse error. > > > > I'm not sure it's so difficult. Tapestry is catching the exception > > further up from the AjaxDirectService so it should be entirely > > possible to just put a try/catch block arround > > cycle.activate(renderPage) and catch the exception there and send back > > the necessary javascript for the redirect. > > > You're right... I thought the cycle.activate call was already in a try > block... > > Ok, try adding a try catch on it, and store the exception in a variable. > > Later on, inside the try blocks, if the variable is not null, do not > invoke the listener. > (the triggerComponent(cycle, direct); call ) > Instead rethrow the exception. > > > Assuming I can catch the exception.... what's the easiest way to send > > back the redirect javascript? > > > > If that works, we can consider adding it tacos. > I was also thinking another solution... if an ajax response is really a > complete html document, > replace the current one with it... but it might be tricky to make this work. > > -- > 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
