I haven't tested it, but as we built in that support last week, I
think the normal exception strategy should work now. And if it doesn't
work yet, we should fix it.

Eelco


On 7/29/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> don't know what the best way would be.
> Maybe we could do it in the wicket code when an AjaxRequest does trigger an
> runtime
> do a redirect to the exception page.. Igor?
>
> johan
>
>
>
>  On 7/29/06, p.jasson <[EMAIL PROTECTED]> wrote:
> >
> > Hello.
> > I would like to handle exceptions in my code automatically. So, I'm using
> > only RutimeExceptions and I also overided the
> > RequestCycle.onRuntimeException(Page page, RuntimeException e) method. It
> > works fine for normal request. But when the exception is thrown during the
> > AjaxRequest than it fails. It fails because requestCycle.setResponsePage()
> > in DefaultExceptionResponseStrategy.respond(RequestCycle
> requestCycle,
> > RuntimeException e) doesn't redirect hence it's an Ajax request. Is there
> an
> > elegant way how to solve this problem or do I have to take care about the
> > RuntimeException explicitly and redirecting to the error page by calling
> > taget.addJavaScript("window.location ....");
> >
> > Thanks.
> >
> > --
> > View this message in context:
> http://www.nabble.com/Handling-RuntimeException-from-AjaxRequest-tf2020124.html#a5554206
> > Sent from the Wicket - User forum at Nabble.com.
> >
> >
> >
> -------------------------------------------------------------------------
> > 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
> >
>
>
> -------------------------------------------------------------------------
> 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
>
>
>

-------------------------------------------------------------------------
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