You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Daniel Lipski (JIRA)" <ji...@apache.org> on 2009/12/30 11:57:29 UTC

[jira] Created: (WICKET-2657) Multipart forms fails on Chrome during Ajax submit

Multipart forms fails on Chrome during Ajax submit
--------------------------------------------------

                 Key: WICKET-2657
                 URL: https://issues.apache.org/jira/browse/WICKET-2657
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4.5
         Environment: Google Chrome 3.0.195.38
            Reporter: Daniel Lipski


AjaxSubmitLink doesn't work with multipart forms on Google Chrome. 
AjaxSubmitLink calls wicketSubmitFormById in its onClick handler. When submiting multipart form this function creates hidden iframe and attaches handleMultipartComplete function to the onload event.
handleMultipartComplete calls loadedCallback with envelope parameter. On Google Chrome envelope is undefined so loadedCallback craches ("Could not find root <ajax-response> element" is reported).


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


[jira] Resolved: (WICKET-2657) Multipart forms fails on Chrome during Ajax submit

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-2657.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-M1
                   1.4.7
         Assignee: Igor Vaynberg

> Multipart forms fails on Chrome during Ajax submit
> --------------------------------------------------
>
>                 Key: WICKET-2657
>                 URL: https://issues.apache.org/jira/browse/WICKET-2657
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.5
>         Environment: Google Chrome 3.0.195.38
>            Reporter: Daniel Lipski
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.4.7, 1.5-M1
>
>
> AjaxSubmitLink doesn't work with multipart forms on Google Chrome. 
> AjaxSubmitLink calls wicketSubmitFormById in its onClick handler. When submiting multipart form this function creates hidden iframe and attaches handleMultipartComplete function to the onload event.
> handleMultipartComplete calls loadedCallback with envelope parameter. On Google Chrome envelope is undefined so loadedCallback craches ("Could not find root <ajax-response> element" is reported).
> I dig more and I found that handleMultipartComplete is called before server side callback completes, thats why 'envelope' is undefined.... 

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


[jira] Updated: (WICKET-2657) Multipart forms fails on Chrome during Ajax submit

Posted by "Daniel Lipski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Lipski updated WICKET-2657:
----------------------------------

    Description: 
AjaxSubmitLink doesn't work with multipart forms on Google Chrome. 
AjaxSubmitLink calls wicketSubmitFormById in its onClick handler. When submiting multipart form this function creates hidden iframe and attaches handleMultipartComplete function to the onload event.
handleMultipartComplete calls loadedCallback with envelope parameter. On Google Chrome envelope is undefined so loadedCallback craches ("Could not find root <ajax-response> element" is reported).

I dig more and I found that handleMultipartComplete is called before server side callback completes, thats why 'envelope' is undefined.... 

  was:
AjaxSubmitLink doesn't work with multipart forms on Google Chrome. 
AjaxSubmitLink calls wicketSubmitFormById in its onClick handler. When submiting multipart form this function creates hidden iframe and attaches handleMultipartComplete function to the onload event.
handleMultipartComplete calls loadedCallback with envelope parameter. On Google Chrome envelope is undefined so loadedCallback craches ("Could not find root <ajax-response> element" is reported).



> Multipart forms fails on Chrome during Ajax submit
> --------------------------------------------------
>
>                 Key: WICKET-2657
>                 URL: https://issues.apache.org/jira/browse/WICKET-2657
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.5
>         Environment: Google Chrome 3.0.195.38
>            Reporter: Daniel Lipski
>            Priority: Critical
>
> AjaxSubmitLink doesn't work with multipart forms on Google Chrome. 
> AjaxSubmitLink calls wicketSubmitFormById in its onClick handler. When submiting multipart form this function creates hidden iframe and attaches handleMultipartComplete function to the onload event.
> handleMultipartComplete calls loadedCallback with envelope parameter. On Google Chrome envelope is undefined so loadedCallback craches ("Could not find root <ajax-response> element" is reported).
> I dig more and I found that handleMultipartComplete is called before server side callback completes, thats why 'envelope' is undefined.... 

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


[jira] Updated: (WICKET-2657) Multipart forms fails on Chrome during Ajax submit

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg updated WICKET-2657:
----------------------------------

    Priority: Minor  (was: Critical)

> Multipart forms fails on Chrome during Ajax submit
> --------------------------------------------------
>
>                 Key: WICKET-2657
>                 URL: https://issues.apache.org/jira/browse/WICKET-2657
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.5
>         Environment: Google Chrome 3.0.195.38
>            Reporter: Daniel Lipski
>            Priority: Minor
>
> AjaxSubmitLink doesn't work with multipart forms on Google Chrome. 
> AjaxSubmitLink calls wicketSubmitFormById in its onClick handler. When submiting multipart form this function creates hidden iframe and attaches handleMultipartComplete function to the onload event.
> handleMultipartComplete calls loadedCallback with envelope parameter. On Google Chrome envelope is undefined so loadedCallback craches ("Could not find root <ajax-response> element" is reported).
> I dig more and I found that handleMultipartComplete is called before server side callback completes, thats why 'envelope' is undefined.... 

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


[jira] Commented: (WICKET-2657) Multipart forms fails on Chrome during Ajax submit

Posted by "Alexandru Objelean (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834701#action_12834701 ] 

Alexandru Objelean commented on WICKET-2657:
--------------------------------------------

I've tested my code with latest 1.4.x branch version in chrome, and apparently there is another problem with this: 
- if AjaxSubmitLink adds to the target some component to be refreshed, then it will disappear. This can be reproduced only in Chrome (v 5.. probably the same problem is with v. 4). In Firefox everything is ok.

> Multipart forms fails on Chrome during Ajax submit
> --------------------------------------------------
>
>                 Key: WICKET-2657
>                 URL: https://issues.apache.org/jira/browse/WICKET-2657
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.5
>         Environment: Google Chrome 3.0.195.38
>            Reporter: Daniel Lipski
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.4.7, 1.5-M1
>
>
> AjaxSubmitLink doesn't work with multipart forms on Google Chrome. 
> AjaxSubmitLink calls wicketSubmitFormById in its onClick handler. When submiting multipart form this function creates hidden iframe and attaches handleMultipartComplete function to the onload event.
> handleMultipartComplete calls loadedCallback with envelope parameter. On Google Chrome envelope is undefined so loadedCallback craches ("Could not find root <ajax-response> element" is reported).
> I dig more and I found that handleMultipartComplete is called before server side callback completes, thats why 'envelope' is undefined.... 

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


[jira] Updated: (WICKET-2657) Multipart forms fails on Chrome during Ajax submit

Posted by "Daniel Lipski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Lipski updated WICKET-2657:
----------------------------------

    Priority: Critical  (was: Major)

> Multipart forms fails on Chrome during Ajax submit
> --------------------------------------------------
>
>                 Key: WICKET-2657
>                 URL: https://issues.apache.org/jira/browse/WICKET-2657
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.5
>         Environment: Google Chrome 3.0.195.38
>            Reporter: Daniel Lipski
>            Priority: Critical
>
> AjaxSubmitLink doesn't work with multipart forms on Google Chrome. 
> AjaxSubmitLink calls wicketSubmitFormById in its onClick handler. When submiting multipart form this function creates hidden iframe and attaches handleMultipartComplete function to the onload event.
> handleMultipartComplete calls loadedCallback with envelope parameter. On Google Chrome envelope is undefined so loadedCallback craches ("Could not find root <ajax-response> element" is reported).

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