Hi Erik,
Were you able to find a solution to be able to present the user
with meaningful error page when an Ajax request fails? I'm also
interested in that.
Cheers,
--
Jean-Baptiste Quenot
aka John Banana Qwerty
http://caraldi.com/jbq/
Hello Jean-Baptiste,
Unfortunately not. I was able to trace the exception handling in both
cases (with and without Ajax) but could not yet conclude on how to
improve the situation.
Erik.
Jean-Baptiste Quenot schreef:
Hi Erik,
Were you able to find a solution to be able to present
Hi Frank,
Yes, that is what I do already. But I would like to redirect to a page
where the user can see the exception and put it in a tracking system.
That exception is invaluable because access to the logs of a production
system is problematic.
Erik.
Frank Bille schreef:
For failing
For failing ajax request shouldn't you use the failure script
(CallDecorator). We do that at work as a backup.
Frank
On 11/30/06, Erik van Oosten [EMAIL PROTECTED] wrote:
Interesting. I'll look into the code tomorrow. Any hints on where at
which point I can start looking?
BTW, I am using the
Okay great, that works. I would not have found that myself.
Now I also would like to redirect to the error page when an _Ajax_
request fails.
Currently I have some javascript that triggers when the request fails,
but that way the exception is lost.
Thanks,
Erik.
Johan Compagner schreef:
i thought we had support for that that you could just set the response page
in an ajax request
and then the ajax request would redirect to that page.
But i can't find support for this anymore.
Matej? Eelco?
johan
On 11/30/06, Erik van Oosten [EMAIL PROTECTED] wrote:
Okay great, that works. I
SetResponsePage should work. However, I'm not sure about failing ajax
request. Meybe we catch the exception on some other place, I'm not sure.
-Matej
Erik van Oosten wrote:
Okay great, that works. I would not have found that myself.
Now I also would like to redirect to the error page when
Interesting. I'll look into the code tomorrow. Any hints on where at
which point I can start looking?
BTW, I am using the 1.2.x trunk from a couple of days ago.
Erik.
Matej Knopp schreef:
SetResponsePage should work. However, I'm not sure about failing ajax
request. Meybe we catch the
no the internal error doesn't get the exception.
You can override this and do what every you want with the method :
RequestCycle.onRuntimeException()
johan
On 11/29/06, Erik van Oosten [EMAIL PROTECTED] wrote:
Hello,
I would like to override the default exception page. We now do that with: