You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Pedro Santos (JIRA)" <ji...@apache.org> on 2010/09/06 21:43:35 UTC

[jira] Updated: (WICKET-1743) WicketTester fires onSubmit for first form button prior to firing requested ajax event

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

Pedro Santos updated WICKET-1743:
---------------------------------

    Attachment: patch.txt

bug fix

> WicketTester fires onSubmit for first form button prior to firing requested ajax event
> --------------------------------------------------------------------------------------
>
>                 Key: WICKET-1743
>                 URL: https://issues.apache.org/jira/browse/WICKET-1743
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.4
>            Reporter: Nick Johnson
>         Attachments: patch.txt, wicket1743.jar
>
>
> In a form that contains a submit button and a text field, when performing tester.executeAjaxEvent("form:text", "onkeyup") on a field with an AjaxFormSubmitBehavior, first the submit button's onSubmit method is executed, and then the AjaxEvent is executed.  In the event that there are multiple submit buttons, it is the first one that gets fired.
> The expected behaviour is that the AjaxFormSubmitBehavior's onSubmit method is called followed by the form's onSubmit method, and the first submit button's onSubmit method is not called.
> I'll attach a simple test case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.