Changing WicketRuntimeException output

2008-10-29 Thread Dane Laverty
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

Re: Changing WicketRuntimeException output

2008-10-29 Thread Maarten Bosteels
Should be possible to catch WicketRuntimeException with a servlet filter ... On Wed, Oct 29, 2008 at 4:27 PM, Dane Laverty [EMAIL PROTECTED]wrote: I would like to make it so that whenever Wicket throws a WicketRuntimeException, it also prints out getSession().getUser(). I'm not especially

Re: Changing WicketRuntimeException output

2008-10-29 Thread Ryan Gravener
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 [EMAIL PROTECTED]wrote: I would like to make it so that whenever