Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6292

Button.onSubmit not called for multipart requests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.0.0-M2
    • 8.0.0-M3
    • None
    • None

    Description

      HomePage.java
      public class HomePage extends WebPage {
          private static final long serialVersionUID = 1L;
      
          public HomePage(final PageParameters parameters) {
              super(parameters);
      
              Form<Void> form = new Form<>("form");
              form.setMultipart(true);
              add(form);
      
              Button components = Button.onSubmit("button", this::buttonOnSubmit);
              form.add(components);
          }
      
          private void buttonOnSubmit(Button button) {
              System.out.println("test");
          }
      
      }
      
      HomePage.html
      <form wicket:id="form">
          <input type="submit" wicket:id="button" value="Okay">
      </form>
      

      Attachments

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              socheat.khauv Socheat KHAUV
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: