You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "todd wolff (JIRA)" <ji...@apache.org> on 2011/01/27 18:32:45 UTC

[jira] Updated: (WICKET-3399) HttpServletResponse is No Longer Accessible via 1.5 API

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

todd wolff updated WICKET-3399:
-------------------------------

    Component/s: wicket

> HttpServletResponse is No Longer Accessible via 1.5 API
> -------------------------------------------------------
>
>                 Key: WICKET-3399
>                 URL: https://issues.apache.org/jira/browse/WICKET-3399
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-RC1
>            Reporter: todd wolff
>
> After migrating from 1.4.x to 1.5 RCI, a breaking change was encountered.  I used to be able to access the servlet response object via:
> getWebRequestCycle().getWebResponse().getHttpServletResponse();
> And after migrating, expected to be able to use:
> ((ServletWebResponse)getResponse()).getHttpServletResponse();
> But I get  a ClassCastException because ServletWebResponse is wrapped a couple of times, i.e. by BufferedWebResponse and then again by HeaderBufferingWebResponse.  And ... these wrapper classes do not provide an API to access the original wrapped response, i.e. the HttpServletResponse.

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