You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Scott O'Bryan (JIRA)" <de...@myfaces.apache.org> on 2007/11/21 23:51:43 UTC

[jira] Resolved: (PORTLETBRIDGE-2) PortletViewHandlerImpl.renderView() fails if included entity acquires response OutputStream

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

Scott O'Bryan resolved PORTLETBRIDGE-2.
---------------------------------------

    Resolution: Fixed
      Assignee: Scott O'Bryan

Issue resolved by patch provided in PORTLETBRIDGE-3.

> PortletViewHandlerImpl.renderView() fails if included entity acquires response OutputStream
> -------------------------------------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-2
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-2
>             Project: MyFaces Portlet Bridge
>          Issue Type: Bug
>          Components: Impl
>    Affects Versions: 1.0.0-SNAPSHOT
>         Environment: Any
>            Reporter: Michael Freedman
>            Assignee: Scott O'Bryan
>             Fix For: 1.0.0-SNAPSHOT
>
>
> Following calling dispatch.include() PortletViewHandlerImpl.renderView() acquires the Writer from the PortletResponse.  This throws an IllegalStateException (as per the portlet spec) if the included entity used the response OutputStream.  Fix is for the code to catch the exception and create a Writer by wrapping the portletResponse.getPortletOutputStream with an OutputStreamWriter.  Be sure to create this Writer using the character encoding of the response.  Also javadoc seems to indicate benefits if the OutputStreamWriter is further wrapped by a BufferedWriter.

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