Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1435

WicketTester.clickLink(String) only triggers the WebRequestCycle.onEndRequest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.2
    • 1.3.3
    • wicket
    • None

    Description

      This issue is somewhat related to WICKET-1434.

      The WebRequestCycle.onBeginRequest is called in a real live environment.

      I created an implementation for WicketTester for clicking AjaxLink's that triggers the onBeginRequest but I can't really asses if it breaks something. Maybe it can be used as example or something:

      class MyWicketTester extends WicketTester {
      public void clickAjaxLink(String linkPath)

      { WebRequestCycle cycle = super.setupRequestAndResponse(); cycle.getRequest().getRequestParameters().setInterfaceName(IBehaviorListener.class.getSimpleName()); cycle.getRequest().getRequestParameters().setBehaviorId("0"); cycle.getRequest().getRequestParameters().setComponentPath(getComponentFromLastRenderedPage(linkPath).getPath()); super.processRequestCycle(cycle); }

      }

      Attachments

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              lvonk Lars Vonk
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: