Author: almaw
Date: Sun Jun 10 15:25:33 2007
New Revision: 545956
URL: http://svn.apache.org/viewvc?view=rev&rev=545956
Log:
WICKET-478 - WicketTester.clickLink() does not recognize SubmitLink.
Modified:
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java
Modified:
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java?view=diff&rev=545956&r1=545955&r2=545956
==============================================================================
---
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java
(original)
+++
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java
Sun Jun 10 15:25:33 2007
@@ -46,6 +46,7 @@
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.FormComponent;
import org.apache.wicket.markup.html.form.RadioGroup;
+import org.apache.wicket.markup.html.link.AbstractLink;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.link.IPageLink;
import org.apache.wicket.markup.html.link.Link;
@@ -630,9 +631,9 @@
requestCycle.getRequestTarget().respond(requestCycle);
}
// if the link is a normal link (or ResourceLink)
- else if (linkComponent instanceof Link)
+ else if (linkComponent instanceof AbstractLink)
{
- Link link = (Link)linkComponent;
+ AbstractLink link = (AbstractLink)linkComponent;
/*
* If the link is a bookmarkable link, then we need to
transfer the