Hi,

I'm trying to plug into the new request cycle processor of 1.5-RC5.1. I am 
following the instructions in the wiki page, but I seem to have run into some 
out-of-date info. So, according to:

https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-RequestCycle:


1) I must create a class implementing IRequestCycleListener
2) I must bind my listener during application init() with 
getRequestCycleListeners().add(...);

My problem is that previously when we extended the WebRequestCycle, we would 
preserve the default exception handling by using:

    @Override
    public Page onRuntimeException(Page page, RuntimeException e) {
        return super.onRuntimeException(page, e);
    }

Now, the wiki page claims that in my listener I can:

public void onException(Exception ex) { /*do nothing*/} However, the new 
listener interface forces you to return a handler (IRequestHandler), it does 
not 
return void as claimed in the wiki. So what do I do to return something that 
will tell Wicket to proceed with its default Exception handling? The actual 
signature is:

public IRequestHandler onException(RequestCycle cycle, Exception ex) {
      // what do I return in order not to interfere?
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to