[ 
https://issues.apache.org/jira/browse/WICKET-1435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Igor Vaynberg updated WICKET-1435:
----------------------------------

    Fix Version/s:     (was: 1.3.3)
                   1.5-M1

> WicketTester.clickLink(String) only triggers the WebRequestCycle.onEndRequest
> -----------------------------------------------------------------------------
>
>                 Key: WICKET-1435
>                 URL: https://issues.apache.org/jira/browse/WICKET-1435
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: Lars Vonk
>             Fix For: 1.5-M1
>
>
> 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);
>         }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to