Ajax Zone is improperly reloaded when a mixin submits form via JavaScript
-------------------------------------------------------------------------
Key: TAP5-1730
URL: https://issues.apache.org/jira/browse/TAP5-1730
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.3, 5.4
Reporter: Lenny Primak
Priority: Minor
Tapestry reloads the zone improperly if JS code
Improperly submits the form. It should at least give some kind of an error
or a warning when happens.
Right now, it fails silently leading to an improper zone reload,
which leads to weird errors when app is running subsequently.
If form..setSubmittingElement(() isn't called before form.onsubmit(),
the Tapestry silently fails and the zone is improperly reloaded.
---------------------------------------------------------------
There was an addition of one line:
$(this.formId).setSubmittingElement($(this.elementId)); // *** ADDED otherwise
zone gets improperly reloaded
$(this.formId).onsubmit(); // Submit Ajax form
If you don't add the first line, the form is reloaded improperly after the zone
update,
so it doesn't work the second time.
This is not documented anywhere, and really hard to debug.
See threads:
http://mail-archives.apache.org/mod_mbox/tapestry-users/201110.mbox/%[email protected]%3E
http://tapestry.1045711.n5.nabble.com/Mixins-stop-working-after-a-zone-update-please-help-td4935912.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira