diff --git a/wicket-core-tests/src/test/java/org/apache/wicket/markup/html/form/FormVisitTest.java b/wicket-core-tests/src/test/java/org/apache/wicket/markup/html/form/FormVisitTest.java index 41485523b5..4e2f039624 100644 --- a/wicket-core-tests/src/test/java/org/apache/wicket/markup/html/form/FormVisitTest.java +++ b/wicket-core-tests/src/test/java/org/apache/wicket/markup/html/form/FormVisitTest.java @@ -16,7 +16,6 @@ */ package org.apache.wicket.markup.html.form; -import org.apache.wicket.Component; import org.apache.wicket.MarkupContainer; import org.apache.wicket.markup.IMarkupResourceStreamProvider; import org.apache.wicket.markup.html.WebMarkupContainer; @@ -26,16 +25,11 @@ import org.apache.wicket.util.resource.IResourceStream; import org.apache.wicket.util.resource.StringResourceStream; import org.apache.wicket.util.tester.WicketTestCase; -import org.apache.wicket.util.visit.IVisit; -import org.apache.wicket.util.visit.IVisitFilter; -import org.apache.wicket.util.visit.IVisitor; -import org.apache.wicket.util.visit.Visits; import org.apache.wicket.validation.INullAcceptingValidator; import org.apache.wicket.validation.IValidatable; import org.apache.wicket.validation.IValidator; import org.apache.wicket.validation.ValidationError; import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; @@ -103,7 +97,6 @@ public void processOuterFormOnly() } @Test - @Disabled public void processInnerFormOnly() { page.outerForm.add(formValidator); diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java index c040536fde..2c40d09a41 100644 --- a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java +++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java @@ -741,7 +741,7 @@ public final boolean isSubmitted() @Override public final void onRequest() { - onFormSubmitted(null); + onFormSubmitted(findSubmitter()); } /**