There are more threads about this issue... 

In order to catch all runtime exception, you have to override default
RequestCycle (newRequestCycle method) in your application class and override
<private Page handleRuntimeException(final Page page, final RuntimeException
e)> method.


Alex Objelean


aditsu wrote:
> 
> Hi, how can I catch any exception thrown while a component is rendering,
> and either hide the component or show an error message, but allow the rest
> of the page to render?
> Modifying or replacing each such component is not an option, I need a
> general way to handle exceptions while rendering any unknown component or
> child component. Such as a getObject method from a model throwing a
> runtime exception.
> 
> Adrian
> 

-- 
View this message in context: 
http://www.nabble.com/Handling-exceptions-during-render-tp20301737p20302542.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to