[ http://issues.apache.org/jira/browse/TAPESTRY-1216?page=all ]

Kent Tong updated TAPESTRY-1216:
--------------------------------

    Attachment: Test.java

> async Submit won't skip client side validation
> ----------------------------------------------
>
>                 Key: TAPESTRY-1216
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1216
>             Project: Tapestry
>          Issue Type: Bug
>          Components: XHR/dhtml/Ajax
>    Affects Versions: 4.1.1
>         Environment: WinXP. FireFox 2.0.
>            Reporter: Kent Tong
>         Attachments: Test.html, Test.java, Test.page
>
>
> A Submit  with async=true should skip client side validation. But it doesn't. 
> To achieve this effect, one may set submitType="refresh". This does skip the 
> client side validation, but this has two very bad side effects: 1) It is no 
> longer async. 2) The listener for the Submit is not called.
> I'm attaching a test program:
> 1) Show the page named "Test".
> 2) Click Button1. It is async but submitType is not set. You will see that 
> client side validation is preventing the submission.
> 3) Click Button2. It is async but submitType is set to "refresh". You will 
> see that client side validation is skipped but the submission is no longer 
> async. In addition, the onSubmit() listener is called but not the onButton2().

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to