Hi,

We recently migrated our application to wicket-1.5.8.

We have an audit aspect based on Spring AOP that shall log the actions
performed in the current page.
In wicket 1.4 we use to get that like
"RequestCycle.get().getResponsePage()".

This has changed and I know that wicket 1.5 doesn't support this anymore.

The suggested method as per the wiki is to "use a custom
RequestCycleListener<https://cwiki.apache.org/WICKET/requestcycle-in-wicket-15.html>
".

Fortunately, as highlighted in the mailing list, there is a new class in
wicket 1.5.8 named
PageRequestHandlerTracker<http://apache-wicket.1842946.n4.nabble.com/Interpolate-response-with-IResponseFilter-td4651476.html>to
meet this common requirement.

However, when we use
PageRequestHandlerTracker.getLastHandler(RequestCycle.get()),
and then attempt to call #getPage(), a null pointer exception is thrown.

Am I doing something wrong here? Please give your suggestions.

-- 
Thanks & regards
James Selvakumar
mcruncher.com

Reply via email to