RE: Handling Ajax requests when decorating the RequestExceptionHandler

2014-06-26 Thread Davide Vecchi
>> Is this method invoking super.handleRequestException()? If yes, you don't >> have to do anything. Actually no, the method is not invoking super.handleRequestException() . I coded it along the lines of "Version 3: Decorating the RequestExceptionHandler" at http://tapestry.apache.org/overridin

Re: Handling Ajax requests when decorating the RequestExceptionHandler

2014-06-26 Thread Thiago H de Paula Figueiredo
On Thu, 26 Jun 2014 04:35:52 -0300, Davide Vecchi wrote: I believe I'm actually decorating; this is a trimmed version of the code: --- In AppModule.java : @Match("RequestExceptionHandler") public static RequestExceptionHandler deco

RE: Handling Ajax requests when decorating the RequestExceptionHandler

2014-06-26 Thread Davide Vecchi
I believe I'm actually decorating; this is a trimmed version of the code: --- In AppModule.java : @Match("RequestExceptionHandler") public static RequestExceptionHandler decorateRequestExceptionHandler(final Logger logger, final Respons

Re: Handling Ajax requests when decorating the RequestExceptionHandler

2014-06-25 Thread Thiago H de Paula Figueiredo
On Tue, 24 Jun 2014 09:39:42 -0300, Davide Vecchi wrote: Hi, Hi! I'm decorating the RequestExceptionHandler in order to handle exceptions and then redirecting to the previous page (the one I find in the "Referer" HTTP header). This works fine for normal page requests but I would like t