Adding AjaxFormSubmitBehavior to Form leads to "Error: too much recursion" JS
Error
-----------------------------------------------------------------------------------
Key: WICKET-3095
URL: https://issues.apache.org/jira/browse/WICKET-3095
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.4.12
Reporter: Michael Sparer
We did an upgrade from 1.4.9 to 1.4.12 and noticed that a custom subclass of
Form behaves differently. To submit a form by means of Ajax, we added an
AjaxFormSubmitBehavior to the form triggering the "onsubmit" event. This worked
until we did the upgrade. Now the javascript error "Error: too much recursion"
occurs on submitting the form. This leads to a non-ajax submit of the form. I
suspect that the code that AjaxFormSubmitBehavior attaches to the onsubmit
event triggers onsubmit again - leading to an infinite loop. We now downgraded
to 1.4.10. So the bug _may_ first occur in 1.4.11 - but that version wasn't
tested.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.