You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org> on 2007/05/20 20:34:16 UTC

[jira] Resolved: (TAPESTRY-1216) async Submit won't skip client side validation

     [ 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org