You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dane Laverty <da...@chemeketa.edu> on 2008/10/29 16:27:37 UTC

Changing WicketRuntimeException output

I would like to make it so that whenever Wicket throws a
WicketRuntimeException, it also prints out getSession().getUser(). I'm
not especially clear on the flow for RuntimeExceptions, so any
suggestions on where I would add the code to do this will be greatly
appreciated.

 

Dane Laverty

Information Technology

503-365-4687

danelaverty@chemeketa.edu

 


Re: Changing WicketRuntimeException output

Posted by Maarten Bosteels <mb...@gmail.com>.
Should be possible to catch WicketRuntimeException with a servlet filter ...



On Wed, Oct 29, 2008 at 4:27 PM, Dane Laverty <da...@chemeketa.edu>wrote:

> I would like to make it so that whenever Wicket throws a
> WicketRuntimeException, it also prints out getSession().getUser(). I'm
> not especially clear on the flow for RuntimeExceptions, so any
> suggestions on where I would add the code to do this will be greatly
> appreciated.
>
>
>
> Dane Laverty
>
> Information Technology
>
> 503-365-4687
>
> danelaverty@chemeketa.edu
>
>
>
>

Re: Changing WicketRuntimeException output

Posted by Ryan Gravener <ry...@ryangravener.com>.
Create your own RequestCycle and in the onRuntimeException(Page page,
RuntimeException e) do this.

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Wed, Oct 29, 2008 at 11:27 AM, Dane Laverty <da...@chemeketa.edu>wrote:

> I would like to make it so that whenever Wicket throws a
> WicketRuntimeException, it also prints out getSession().getUser(). I'm
> not especially clear on the flow for RuntimeExceptions, so any
> suggestions on where I would add the code to do this will be greatly
> appreciated.
>
>
>
> Dane Laverty
>
> Information Technology
>
> 503-365-4687
>
> danelaverty@chemeketa.edu
>
>
>
>