You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2010/03/15 23:32:27 UTC

[jira] Issue Comment Edited: (WICKET-2783) FormTester.submit does not work with AjaxButtons

    [ https://issues.apache.org/jira/browse/WICKET-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845571#action_12845571 ] 

Tony Wu edited comment on WICKET-2783 at 3/15/10 10:31 PM:
-----------------------------------------------------------

Also want to add that moving the TextField disable (this.textField.setEnabled(false)) outside of the MyForm process function and into the constructor makes the unit test work. So somehow, dynamically setting the TextField.setEnabled(false) inside process doesn't work in WicketTester for ajax onclick submits, but works fine in the browser and normal unit test submits (non-ajax).

      was (Author: e90tony):
    Also want to add that moving the TextField disable (this.textField.setEnabled(false)) outside of the MyForm process function and into the constructor makes the unit test work. So somehow, dynamically setting the TextField.setEnabled(false) inside process doesn't work in WicketTester for ajax onclick submits, but works fine in the browser.
  
> FormTester.submit does not work with AjaxButtons
> ------------------------------------------------
>
>                 Key: WICKET-2783
>                 URL: https://issues.apache.org/jira/browse/WICKET-2783
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.7
>            Reporter: Tony Wu
>         Attachments: wicket-2783.tgz, wicket-ajax-submit-bug.zip
>
>
> FormTester.submit on an AjaxButton (AjaxFallbackButton) does not cause the button's onSubmit function to run, nor the form's process function to run.

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