Re: Redirect on exception

2015-09-11 Thread Nathan Quirynen
Anything else you think might be interfering? As I can't find anything wrong or don't know how to test if it is being used. Nathan On 11/09/15 14:28, Nathan Quirynen wrote: Yes I think the module is loaded as I can see in the logs : [INFO] ioc.RegistryBuilder Adding module definition for clas

Re: Redirect on exception

2015-09-11 Thread Nathan Quirynen
Yes I think the module is loaded as I can see in the logs : [INFO] ioc.RegistryBuilder Adding module definition for class org.tynamo.exceptionpage.services.ExceptionPageModule On 10/09/15 20:53, Kalle Korhonen wrote: On Thu, Sep 10, 2015 at 9:41 AM, Nathan Quirynen < nat...@pensionarchitects.

Re: Redirect on exception

2015-09-10 Thread Kalle Korhonen
On Thu, Sep 10, 2015 at 9:41 AM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > Ok so I added the library by adding this in my pom.xml: > | org.tynamo > tapestry-exceptionpage 0.1.2 > | > Then added following in my AppModule: > public void contributeExceptionHandler(MappedConfiguratio

Re: Redirect on exception

2015-09-10 Thread Nathan Quirynen
Ok so I added the library by adding this in my pom.xml: | org.tynamo tapestry-exceptionpage 0.1.2 | Then added following in my AppModule: public void contributeExceptionHandler(MappedConfiguration, Class> configuration) { configuration.add(Exception.class, Error.class); }

Re: Redirect on exception

2015-09-10 Thread Kalle Korhonen
On Thu, Sep 10, 2015 at 8:47 AM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > I'm still on 5.3.7. Can't update to 5.4 yet sadly. > Any options for 5.3.7? You can get the same functionality as an external module: http://www.tynamo.org/tapestry-exceptionpage+guide/ Kalle > > > On 10/

Re: Redirect on exception

2015-09-10 Thread Nathan Quirynen
Also when I follow this pages instructions: https://tapestry.apache.org/error-page-recipe.html It is not showing my custom error page... but still the default exception report from Tapestry. I did exactly as described. My application runs in development mode and uses maven jetty plugin (versio

Re: Redirect on exception

2015-09-10 Thread Nathan Quirynen
I'm still on 5.3.7. Can't update to 5.4 yet sadly. Any options for 5.3.7? On 10/09/15 17:45, Kalle Korhonen wrote: On Thu, Sep 10, 2015 at 7:56 AM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: How can I set a redirect when an exception has been thrown? But this seems to only work for

Re: Redirect on exception

2015-09-10 Thread Kalle Korhonen
On Thu, Sep 10, 2015 at 7:56 AM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > How can I set a redirect when an exception has been thrown? > But this seems to only work for non-XHR requests? Or did I forget > something here? > If you are on T5.4, you can simply contribute an exception t

Re: Redirect on exception

2015-09-10 Thread Ido Dovrat
The method you're decorating internally commits the response in case of an XHR request. By the time your code runs the response can no longer be modified. [image: 5oosh_LOGO_FINAL_web-02] *Ido Dovrat | CEO* *T*: +972-77-5517453 *M*: +972-54-4264831 *F*: +972-77-5517454 *A*: 5 Kinneret St, Bne

Re: Redirect on exception

2015-09-10 Thread Nathan Quirynen
When creating a page that implements ExceptionReporter it works for both XHR and non-XHR, but I don't want it to be a popup on XHR requests, I want it to redirect to this page. On 10/09/15 16:56, Nathan Quirynen wrote: Hi, How can I set a redirect when an exception has been thrown? I tried t