Found it =)

http://www.nabble.com/Deal-with-specific-exception-t1334333.html

public class App extends WebApplication {

    @Override
    protected IRequestCycleFactory getDefaultRequestCycleFactory() {
        return new IRequestCycleFactory() {
            private static final long serialVersionUID = 1L;

            public RequestCycle newRequestCycle(Session session,
                    Request request, Response response) {

                return new WebRequestCycle((WebSession) session,
                        (WebRequest) request, (WebResponse) response) {
                                        @Override
                                        public wicket.Page 
onRuntimeException(wicket.Page page,
RuntimeException e) {
                                                return new ErrorPage(e);
                                        }
                };
            }
        };
    }

2006/8/1, JK <[EMAIL PROTECTED]>:
> Hello,
>
> If you create own InternalErrorPage and configure it with
> ---------------- Application
>         protected void init() {
>                 
> getApplicationSettings().setInternalErrorPage(ErrorPage.class);
>         }
>
> ---------------- ErrorPage
> public class ErrorPage extends WebPage
> ----------------
>
> How do you know what exception was thrown?
>

-------------------------------------------------------------------------
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

Reply via email to