You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2008/08/05 16:57:54 UTC
svn commit: r682730 -
/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/xmlHttp/XmlHttpServletResponse.java
Author: matzew
Date: Tue Aug 5 07:57:53 2008
New Revision: 682730
URL: http://svn.apache.org/viewvc?rev=682730&view=rev
Log:
TRINIDAD-1170 - Partial Page Rendering does not work on Weblogic 10
fixed response wrapper to have always XML as content type.
Modified:
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/xmlHttp/XmlHttpServletResponse.java
Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/xmlHttp/XmlHttpServletResponse.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/xmlHttp/XmlHttpServletResponse.java?rev=682730&r1=682729&r2=682730&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/xmlHttp/XmlHttpServletResponse.java (original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/xmlHttp/XmlHttpServletResponse.java Tue Aug 5 07:57:53 2008
@@ -36,11 +36,11 @@
{
super((HttpServletResponse)response);
- String contentType = "text/xml;charset=utf-8";
+ _contentType = "text/xml;charset=utf-8";
// must set contentType here since
// setContentType is ignored when inside an included page (bug 5591124)
- this.getResponse().setContentType(contentType);
+ this.setContentType(_contentType);
}
@Override
@@ -73,6 +73,7 @@
// attempts to set the contentType, since the contentType
// must be text/xml:
_LOG.finer("ignoring setContentType:{0}", type);
+ super.setContentType(_contentType);
}
@Override
@@ -95,6 +96,7 @@
rw.close();
}
+ private String _contentType = null;
static private final TrinidadLogger _LOG =
TrinidadLogger.createTrinidadLogger(XmlHttpServletResponse.class);
}