You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2008/03/23 03:51:24 UTC

[jira] Resolved: (WICKET-1435) WicketTester.clickLink(String) only triggers the WebRequestCycle.onEndRequest

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

Igor Vaynberg resolved WICKET-1435.
-----------------------------------

    Resolution: Fixed

> 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
>            Assignee: Igor Vaynberg
>             Fix For: 1.3.3
>
>
> 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.