> > is there a wicket way for handling exceptions? I call my beans from my
> > controller which manages the wicket-view (Panel, Page ...). Some
> > exceptions i
> > want to handle in the controller. But sometimes there are NPEs or IAEs. I
> > would like to send them all to an error page, but without handling the
> > exception. Is wicket presenting automatically a not handled exception?
> >
>
> This is done automatically in deployment mode. In development mode, you can
> enable it like:
>
> public class MyApp extends WebApplication {
> protected void init() {
> getExceptionSettings().setUnexpectedExceptionDisplay(
> IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
> }
> }
>
> This will display wicket's internal error page. If you need to provide your
> own
> page, try:
>
> getApplicationSettings().setInternalErrorPage(MyErrorPage.class);
>
Also, you can provide your own request cycle and override
onRuntimeException for maximum control. You can always let that
delegate to default error handling (including what error page is set
etc).
Eelco
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]