Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1216

async Submit won't skip client side validation

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.2
    • Component/s: XHR/dhtml/Ajax
    • Labels:
      None
    • Environment:
      WinXP. FireFox 2.0.

      Description

      A Submit with async=true should skip client side validation. But it doesn't. To achieve this effect, one may set submitType="refresh". This does skip the client side validation, but this has two very bad side effects: 1) It is no longer async. 2) The listener for the Submit is not called.

      I'm attaching a test program:
      1) Show the page named "Test".
      2) Click Button1. It is async but submitType is not set. You will see that client side validation is preventing the submission.
      3) Click Button2. It is async but submitType is set to "refresh". You will see that client side validation is skipped but the submission is no longer async. In addition, the onSubmit() listener is called but not the onButton2().

        Attachments

        1. Test.page
          0.2 kB
          Kent Tong
        2. Test.java
          0.4 kB
          Kent Tong
        3. Test.html
          0.6 kB
          Kent Tong

          Activity

            People

            • Assignee:
              jkuhnert Jesse Kuhnert
              Reporter:
              freemant Kent Tong
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: