Bugs item #1365114, was opened at 2005-11-23 21:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1365114&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Eduardo Rocha (eduardorochabr)
Assigned to: Nobody/Anonymous (nobody)
Summary: WicketTester doesn't support BookmarkablePageLink
Initial Comment:
The following code:
(HomePage.class):
add(new BookmarkablePageLink("myPageLink", MyPage.class));
fails for the following test:
(HomePageTest.class):
WicketTester tester = new WicketTester();
tester.startPage(HomePage.class);
tester.clickLink("myPageLink");
tester.assertRenderedPage(MyPage.class);
When the link is clicked, the rendered page is HomePage
again.
As discussed in the mailing list, there seems to be two
approaches:
1. Make Link.getURL() public, so we could parse the
parameters back to MockHttpServletRequest. This seems
to be the best approach, since all Link subclasses
would work;
2. Make BookmarkablePageLink.getPageClass(), so we
could put a parameter like "bookmarkablePage=xxx" on
MockHttpServletRequest. Besides also having to change a
core class, this approach is more 'ad hoc' and specific
to BookmarkablePageLink.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1365114&group_id=119783
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop