It appears that the patch is only for versions 1.3 and 2.0, and we are
using 1.2.4, hence it won't apply correctly.

The failure handler you mentioned works quite well, thank you for that,
but it only seems to work in development mode.  Basically here is what
is happening for me:

In development mode, I can only handle my errors using the failure
handler
In deployment mode, I can only handle my errors using the re-direct to
the error page via RequestCycle.

What I would like is to be able to use both in either mode in Wicket
1.2.4.  Is this possible?

Thanks


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jean-Baptiste Quenot
Sent: Friday, March 23, 2007 6:39 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Ajax error handling: deployment vs
developmentmode

* Apaar Trivedi:

> I understand that  if my app is in deployment  mode then all run
> time exceptions, including anything which happens during an Ajax
> request  will be  caught by  my RequestCycle.onRuntimeException,
> and this is working fine.  But how can I replicate this behavior
> during  development  mode?   During  development  mode  my  ajax
> runtime exceptions merely  show up in my Tomcat  console, and do
> not forward to the error page.

This is fixed already, see:

Use standard exception handling in AjaxRequestTarget
http://issues.apache.org/jira/browse/WICKET-313

However I didn't notice  different behavior between deployment and
development when I had this problem.

> Also, how  can I conceivably  handle these errors on  the client
> side, say for instance I experience an ajax runtime error during
> some request and  I would like to display a  friendly message in
> my window, instead of forwarding to the error page, how can this
> be done?

Just define wicketGlobalFailureHandler() JS function in your document.

There is a plug-and-play implementation for Dojo here FYI:
http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/branches/wic
ket-1.3/wicket-contrib-dojo/src/main/java/wicket/contrib/dojo/markup/htm
l/floatingpane/AjaxErrorBehavior.java?revision=1755&view=markup

Cheers,
-- 
     Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to