> > For the submit and link tracking, the Javadocs say that is not recomended > to override this method besides it would work for submits only. Here what > I'm looking is some way of "intercepting" the click of a button or a link.
You should be able to use proper OAP (like AspectJ) with Wicket if you wish. Or you can define a custom request targets or even a custom request cycle processor like this (in your application class): @Override protected IRequestCycleProcessor newRequestCycleProcessor() { final IRequestCycleProcessor wrapped = super .newRequestCycleProcessor(); return new IRequestCycleProcessor() { public IRequestCodingStrategy getRequestCodingStrategy() { return wrapped.getRequestCodingStrategy(); } public void processEvents(RequestCycle requestCycle) { IRequestTarget resolvedTarget = requestCycle .getRequestTarget(); if (resolvedTarget instanceof IComponentRequestTarget) { // etc, etc. } wrapped.processEvents(requestCycle); } public IRequestTarget resolve(RequestCycle requestCycle, RequestParameters requestParameters) { return wrapped.resolve(requestCycle, requestParameters); } public void respond(RequestCycle requestCycle) { wrapped.respond(requestCycle); } public void respond(RuntimeException e, RequestCycle requestCycle) { wrapped.respond(e, requestCycle); } }; } Eelco ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user