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

Add support in FormTester#submit(String|Component) for Ajax submitters

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.15.0
    • 6.16.0, 7.0.0-M2
    • wicket
    • None

    Description

      At the moment if an application wants to submit a form with AjaxButton it has to use:
      formTester.setValue(...); // one or more times
      wicketTester.executeAjaxEvent("path:to:AjaxButton", "click");

      I think formTester.submit(String|Component) should check whether the component is AjaxButton|AjaxSubmitLink and do wicketTester.executeAjaxEvent(ajaxSubmitter, "click") internally.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: