[
https://issues.apache.org/jira/browse/TAPESTRY-1216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jesse Kuhnert resolved TAPESTRY-1216.
-------------------------------------
Resolution: Fixed
Assignee: Jesse Kuhnert
The refresh logic I have fixed but the general requirement that anything
happening asynchronously should skip validation isn't something I agree with
entirely.
> async Submit won't skip client side validation
> ----------------------------------------------
>
> Key: TAPESTRY-1216
> URL: https://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
> Assigned To: Jesse Kuhnert
> Fix For: 4.1.2
>
> 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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]