You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2010/10/06 10:50:31 UTC

[jira] Assigned: (WICKET-3095) Adding AjaxFormSubmitBehavior to Form leads to "Error: too much recursion" JS Error

     [ https://issues.apache.org/jira/browse/WICKET-3095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov reassigned WICKET-3095:
---------------------------------------

    Assignee: Martin Grigorov

> 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
>
> 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.