Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fix the docu for creating RequestCycle in 1.5

...

In this case we'll need to extend RequestCycle and Override org.apache.wicket.Application.createRequestCyclesetRequestCycleProvider(Request, ResponseIRequestCycleProvider) to return our class.The current entry point is org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach().
For now we'll have to wrap this method with try/finally to simulate onBefore/onEnd. (This will be improved for milestone 2)a provider for a custom RequestCycle implementation.

Exception handling

In Wicket 1.4 it was needed to extend org.apache.wicket.RequestCycle.onRuntimeException(Page, RuntimeException).
Wicket 1.5 gives even better control, by overriding org.apache.wicket.Application.newExceptionMapper() it is possible to change even the default processing of error pages.

...