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

[jira] Assigned: (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 ]

Igor Vaynberg reassigned WICKET-3399:
-------------------------------------

    Assignee: Igor Vaynberg

> 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
>            Assignee: Igor Vaynberg
>
> 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.