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

FormTester doesn't treat SubmitLink and AjaxSubmitLink correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.17, 1.4.18
    • 1.4.18
    • wicket
    • None

    Description

      We ran into a testing issue with FormTester. When using a SubmitLink or AjaxSubmitLink it does not properly collect and use the values for the various form fields. The problem appears to be with a very inconsistent handling of "parametersForNextRequest" and MockServletRequest's parameter map. I did not completely manage to take it apart, frankly, it's a mess. I have a set of patches against 1.4.17 that introduce a test for this and also fix the problem. The fix is a bit hackish, but it works and does not break anything else.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            cmenzel Carl-Eric Menzel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: