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

Async form fails if keyboard is used to trigger the submit...

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.1
    • 4.1.1
    • Framework, JavaScript
    • None
    • FF1.5.0.7

    Description

      An example:
      <form jwcid="@Form" async="ognl:true" listener="listener:doEmail"
      updateComponents="testme">
      <input jwcid="@TextField" value="ognl:email"/>
      <input jwcid="@Submit" value="SEND"/>
      </form>

      Pressing ENTER submits correctly the first time. However, pressing ENTER again results in
      [TypeError: this.forms[formId] has no properties, file: http://127.0.0.1:8080/assets/static/dojo/dojo.js, line: 419] when calling overrideSubmit$joinpoint$method on [object Object] with arguments [object Object]
      FATAL exception raised: this.forms[formId] has no properties
      and no ajax request is made.

      Finally, if one changes the textfield value and submits again using ENTER, it will work.

      So, the problem occurs when submiting with keyboard an already submitted form that hasn't changed its values.

      Attachments

        Activity

          People

            andyhot Andreas Andreou
            andyhot Andreas Andreou
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: