You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Funk (JIRA)" <ji...@apache.org> on 2010/12/10 15:06:02 UTC

[jira] Issue Comment Edited: (WICKET-3251) How to set custom HTTP response header in Wicket's Ajax responses?

    [ https://issues.apache.org/jira/browse/WICKET-3251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970173#action_12970173 ] 

Martin Funk edited comment on WICKET-3251 at 12/10/10 9:05 AM:
---------------------------------------------------------------

The custom filter solution is probably nicer, if the needed values are within reach of the filter.

Basically overriding getWebResponse() only has an effect for non-Ajax calls.
This is because the AjaxRequestTarget is calling getResponse(), which is final.

So the suggestion of the patch is to let it call getWebResponse() instead.



      was (Author: funkattack):
    The custom filter solution is probably nicer, if the needed values are within reach of the filter.

Basically overriding getWebResponse() only has an effect for non-Ajax calls.
This is because the AjaxRequestTarget is calling getResponse(), which is final.

So the suggestion of the patch is to let it call getWebResponse().


  
> How to set custom HTTP response header in Wicket's Ajax responses?
> ------------------------------------------------------------------
>
>                 Key: WICKET-3251
>                 URL: https://issues.apache.org/jira/browse/WICKET-3251
>             Project: Wicket
>          Issue Type: Bug
>            Reporter: Martin Funk
>         Attachments: Wicket-3251.diff
>
>
> http://stackoverflow.com/questions/4397211/how-to-set-custom-http-response-header-in-wickets-ajax-responses/4399434#4399434

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