Might help if you provide a stack trace for the NPE :)

Have a great day,
    Paul Borș

On Aug 29, 2012, at 0:37, James Eliyezar <ja...@mcruncher.com> wrote:

> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to