Hi,
How can I set a redirect when an exception has been thrown?
I tried the following:
@Match("RequestExceptionHandler")
public static RequestExceptionHandler
decorateRequestExceptionHandler(final Response response) {
return new RequestExceptionHandler() {
@Overri
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
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
Hello everyone,
we're fighting a caching problem here using Tapestry 5.3.8. I know that 5.4
will code urls with hashes so that you get the newest resource every time.
With 5.3.8, I am supposed to change versions or something like it. But I'd
rather just serve resources with ETags and cache-cont
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
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
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
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/
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);
}
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
10 matches
Mail list logo