[ https://issues.apache.org/jira/browse/WICKET-3095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12918676#action_12918676 ]
Hudson commented on WICKET-3095: -------------------------------- Integrated in Apache Wicket 1.5.x #384 (See [https://hudson.apache.org/hudson/job/Apache%20Wicket%201.5.x/384/]) WICKET-3095 Adding AjaxFormSubmitBehavior to Form leads to "Error: too much recursion" JS Error merge r1005194, 1005195 and 1005196 from 1.4.x Set a temporary attribute to the form before calling its onsubmit handler to prevent endless loop. > 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 > Assignee: Martin Grigorov > Priority: Minor > Fix For: 1.4.13, 1.5-M3 > > Attachments: recursion.jar > > > 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.