Skip to content

Commit

Permalink
WICKET-3899 fix submitted flag set for not submitted form
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrosans committed Nov 22, 2024
1 parent b3a7d62 commit f67bccf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.*;
Expand Down Expand Up @@ -103,7 +97,6 @@ public void processOuterFormOnly()
}

@Test
@Disabled
public void processInnerFormOnly()
{
page.outerForm.add(formValidator);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ public final boolean isSubmitted()
@Override
public final void onRequest()
{
onFormSubmitted(null);
onFormSubmitted(findSubmitter());
}

/**
Expand Down

0 comments on commit f67bccf

Please sign in to comment.