> > 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):

  protected IRequestCycleProcessor newRequestCycleProcessor() {
    final IRequestCycleProcessor wrapped = super
    return new IRequestCycleProcessor() {

      public IRequestCodingStrategy getRequestCodingStrategy() {
        return wrapped.getRequestCodingStrategy();

      public void processEvents(RequestCycle requestCycle) {
        IRequestTarget resolvedTarget = requestCycle
        if (resolvedTarget instanceof IComponentRequestTarget) {
          // etc, etc.

      public IRequestTarget resolve(RequestCycle requestCycle,
          RequestParameters requestParameters) {
        return wrapped.resolve(requestCycle, requestParameters);

      public void respond(RequestCycle requestCycle) {

      public void respond(RuntimeException e,
          RequestCycle requestCycle) {
        wrapped.respond(e, requestCycle);


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
Wicket-user mailing list

Reply via email to