From: Ricardo J. P. <rp...@ma...> - 2009-12-17 18:52:41
|
I found on google a response by Chuck regarding a similar issue. Here's what I did. I basically had to add a call to session to savePage(errorPage) as shown here: public WOResponse handleException(Exception rootException, WOContext aContext) { // Handle the exception differently for AJAX requests. if (AjaxUtils.isAjaxRequest(aContext.request())) { WOComponent errorPage = pageWithName(MPVExceptionPage.class, aContext); AjaxUtils.javascriptResponse("alert('oops');", aContext); AjaxUtils.redirectTo(errorPage); aContext.session().savePage(errorPage); return aContext.response(); } // Exception handling for non-AJAX requests ... } On Dec 17, 2009, at 11:29 AM, Ricardo J. Parada wrote: > > Hi All Wonderers, > > I have this in my Application's handleException() : > > public WOResponse handleException(Exception rootException, WOContext aContext) { > // If Ajax the redirect to error page > if (AjaxUtils.isAjaxRequest(aContext.request())) { > AjaxUtils.redirectTo(pageWithName(MPVExceptionPage.class, aContext)); > return aContext.response(); > } > > // Normal request exception handling > ... > } > > But when I do so instead of being redirected to the MPVExceptionPage the application displays this: > > You backtracked too far. > The application backtracking limit of 30 has been exceeded. > > Any suggestions what I'm doing wrong? > > Thanks much in advance, > Ricardo > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ > Wonder-disc mailing list > Won...@li... > https://lists.sourceforge.net/lists/listinfo/wonder-disc |