You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Kent Tong (JIRA)" <ta...@jakarta.apache.org> on 2006/12/28 16:49:20 UTC

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

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


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


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

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ 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


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

Posted by "Kent Tong (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-1216?page=all ]

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

    Attachment: Test.html

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


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

Posted by "Kent Tong (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-1216?page=all ]

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

    Attachment: Test.page

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


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

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-1216:
------------------------------------

    Fix Version/s: 4.1.2

> 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
>             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.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


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

Posted by "Kent Tong (JIRA)" <ta...@jakarta.apache.org>.
     [ 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org