Re: Different ExceptionReport for different pages

2010-01-17 Thread Benny Law
I haven't tried it myself, but the Tapestry documentation says that you can create an event handler in your special page to catch exceptions and redirect to a different exception page: Object onException( Throwable cause ) { return MySpecialExceptionReport.class; } Don't know if t

Re: Different ExceptionReport for different pages

2010-01-17 Thread Howard Lewis Ship
This is easier in 5.2 as there's a new RequestGlobals property that identifies the name of the page for the request. On Sun, Jan 17, 2010 at 11:03 AM, Richard Hill wrote: > > Ok thanks. Is it possible to detect which page threw the exception? My > logic needs to be based on the page that threw th

Re: Different ExceptionReport for different pages

2010-01-17 Thread Richard Hill
Ok thanks. Is it possible to detect which page threw the exception? My logic needs to be based on the page that threw the exception as opposed to the type of exception. -Original Message- From: Thiago H. de Paula Figueiredo Reply-to: "Tapestry users" To: Tapestry users Subject: Re:

Re: Different ExceptionReport for different pages

2010-01-17 Thread Thiago H. de Paula Figueiredo
On Sun, 17 Jan 2010 15:41:08 -0200, Richard Hill wrote: Hi All, Hi! I have an ExceptionReport.java, .tml to present a pretty error page to users. However there is one page where I would like to have a different exception page. Is this possible? Simple answer: you can, but I think it's n

Different ExceptionReport for different pages

2010-01-17 Thread Richard Hill
Hi All, I have an ExceptionReport.java, .tml to present a pretty error page to users. However there is one page where I would like to have a different exception page. Is this possible? What's the simplest way of achieving this? Thanks very much, Richard. --