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 2011/09/18 02:06:08 UTC
[jira] [Resolved] (WICKET-2746) Implementing fix in WICKET-1292
[ https://issues.apache.org/jira/browse/WICKET-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-2746.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.5.0
Assignee: Igor Vaynberg
this should be fixed in 1.5.0+
> Implementing fix in WICKET-1292
> -------------------------------
>
> Key: WICKET-2746
> URL: https://issues.apache.org/jira/browse/WICKET-2746
> Project: Wicket
> Issue Type: Task
> Components: wicket
> Affects Versions: 1.4.5
> Environment: All
> Reporter: Roger Ball
> Assignee: Igor Vaynberg
> Labels: WICKET-1292
> Fix For: 1.5.0
>
>
> I have been trying to implement the workaround you mention in this ticket. I have not been successful. I am not clear where the following code (from the comment in WICKET-1292) would go in the test case java files included in WICKET - 1292?
> from ticket:
> Workaround by Maurice Marrink:
> // continueToOriginaldestination does not work if there is no url available, so we need to fake one here(testing only hack)
> mock.setupRequestAndResponse();
> WebRequestCycle cycle = mock.createRequestCycle();
> String url1 = cycle.urlFor(new BookmarkablePageRequestTarget(YOUR_PAGE_HERE.class, null)).toString();
> mock.getServletRequest().setURL("/GeneralTest$1/GeneralTest$1/" + url1);
> mock.processRequestCycle();
> ---
> mock is the WicketTester.
> GeneralTest$1 from the url is the classname of your application without the package. (in my case it is an anonymous inner class hence the $1) Note that this classname appears twice in the url.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira