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

Allow to set field values before submitting a form with Ajax in WicketTester

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0-beta1, 1.3.0-beta2
    • 1.3.0-beta2
    • wicket
    • None
    • Ubuntu Dapper Linux, Sun java 1.5.0_10

    Description

      I have code to validate {{TextField}}s one by one with ajax. While the code works, I wasn't able to assert it working with WicketTester.

      The attached quickstart can be used to reproduce the problem on a 2.0 snapshot. The code works in a browser (validity gets toggled true / false when changing the input length), but WicketTester fails.

      With WicketTester, the ajax event gets triggered (and it calls validate on the field), but isValid always returns true.

      Attachments

        1. ajax-validation-sans-submit.zip
          3.28 MB
          Timo Heikki Rantalaiho
        2. ajax-validation-sans-submit-1.3.0.zip
          3.30 MB
          Timo Heikki Rantalaiho
        3. wicket-form-submit-enable-toggle.diff
          8 kB
          Kare Nuorteva

        Issue Links

          Activity

            People

              jbq Jean-Baptiste Quenot
              thrantal Timo Heikki Rantalaiho
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: