You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (Jira)" <ji...@apache.org> on 2022/02/02 21:45:00 UTC

[jira] [Resolved] (WICKET-6953) JavaScriptDeferHeaderResponse not working correctly for AJAX requests

     [ https://issues.apache.org/jira/browse/WICKET-6953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sven Meier resolved WICKET-6953.
--------------------------------
    Fix Version/s: 10.0.0
                   9.8.0
         Assignee: Sven Meier
       Resolution: Fixed

Since WICKET-6703 Ajax response passes all header items through header decorators.

So now JavaScriptDeferHeaderResponse has to do nothing on Ajax requests, to prevent JS from being wrapped in native DOM event wrappers (which will never be fired).

> JavaScriptDeferHeaderResponse not working correctly for AJAX requests
> ---------------------------------------------------------------------
>
>                 Key: WICKET-6953
>                 URL: https://issues.apache.org/jira/browse/WICKET-6953
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 9.7.0
>            Reporter: Sebastian Gooren
>            Assignee: Sven Meier
>            Priority: Minor
>             Fix For: 10.0.0, 9.8.0
>
>         Attachments: myproject.zip
>
>
> When using the `JavaScriptDeferHeaderResponse` any javascript code is (incorrectly) wrapped in `DOMContentLoaded` listeners for AJAX requests.
> Quickstart that demonstrates the issue is attached.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)