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:
> |<dependency> <groupId>org.tynamo</groupId>
> <artifactId>tapestry-exceptionpage</artifactId> <version>0.1.2</version>
> </dependency>|
> Then added following in my AppModule:
>     public void contributeExceptionHandler(MappedConfiguration<Class<?>,
> Class<?>> configuration) {
>         configuration.add(Exception.class, Error.class);
>     }
> So I just added "throw new RuntimeException()" somewhere in a page to test
> it, but it is not going to the error page, still tapestry its default
> exception reporting.
> Anything else I have to configure?


No, that should be it. Are you sure the module is loaded ? You could use
@SubModule to make sure.

Kalle



> On 10/09/15 18:19, Kalle Korhonen wrote:
>
>> 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/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 non-XHR requests? Or did I forget
>>>>> something here?
>>>>>
>>>>> If you are on T5.4, you can simply contribute an exception type ->
>>>>> error
>>>>>
>>>> page map to the DefaultRequestExceptionHandler. It handles XHR requests
>>>> as
>>>> well. See
>>>>
>>>>
>>>> http://tapestry.apache.org/5.4/apidocs/org/apache/tapestry5/internal/services/DefaultRequestExceptionHandler.html
>>>> .
>>>>
>>>> Kalle
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>>
>

Reply via email to