Re: [Wicket-user] Handling RuntimeException from AjaxRequest

2006-07-29 Thread Eelco Hillenius
/me does a happy dance.

Eelco


On 7/29/06, p.jasson <[EMAIL PROTECTED]> wrote:
>
> Yep. You're right. With the lastest snapshot it's working correctly.
> --
> View this message in context: 
> http://www.nabble.com/Handling-RuntimeException-from-AjaxRequest-tf2020124.html#a5557307
> 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


Re: [Wicket-user] Handling RuntimeException from AjaxRequest

2006-07-29 Thread p.jasson

Yep. You're right. With the lastest snapshot it's working correctly.
-- 
View this message in context: 
http://www.nabble.com/Handling-RuntimeException-from-AjaxRequest-tf2020124.html#a5557307
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


Re: [Wicket-user] Handling RuntimeException from AjaxRequest

2006-07-29 Thread Eelco Hillenius
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


Re: [Wicket-user] Handling RuntimeException from AjaxRequest

2006-07-29 Thread Johan Compagner
don't know what the best way would be.Maybe we could do it in the wicket code when an AjaxRequest does trigger an runtimedo 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 usingonly RutimeExceptions and I also overided theRequestCycle.onRuntimeException(Page page, RuntimeException e) method. Itworks 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 theRuntimeException explicitly and redirecting to the error page by callingtaget.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 youropinions 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 listWicket-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


[Wicket-user] Handling RuntimeException from AjaxRequest

2006-07-29 Thread p.jasson

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