You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ss...@apache.org on 2005/07/08 22:46:03 UTC
svn commit: r209884 -
/myfaces/impl/trunk/src/java/org/apache/myfaces/portlet/MyFacesGenericPortlet.java
Author: ssilvert
Date: Fri Jul 8 13:46:03 2005
New Revision: 209884
URL: http://svn.apache.org/viewcvs?rev=209884&view=rev
Log:
Added setContentType to nonFacesRequest(). This is needed if MyFacesGenericPortlet is subclassed and nonFacesRequest() is called directly.
Modified:
myfaces/impl/trunk/src/java/org/apache/myfaces/portlet/MyFacesGenericPortlet.java
Modified: myfaces/impl/trunk/src/java/org/apache/myfaces/portlet/MyFacesGenericPortlet.java
URL: http://svn.apache.org/viewcvs/myfaces/impl/trunk/src/java/org/apache/myfaces/portlet/MyFacesGenericPortlet.java?rev=209884&r1=209883&r2=209884&view=diff
==============================================================================
--- myfaces/impl/trunk/src/java/org/apache/myfaces/portlet/MyFacesGenericPortlet.java (original)
+++ myfaces/impl/trunk/src/java/org/apache/myfaces/portlet/MyFacesGenericPortlet.java Fri Jul 8 13:46:03 2005
@@ -293,6 +293,7 @@
throws PortletException
{
if (log.isTraceEnabled()) log.trace("Non-faces request: contextPath = " + request.getContextPath());
+ response.setContentType("text/html"); // do this in case nonFacesRequest is called by a subclass
ApplicationFactory appFactory =
(ApplicationFactory)FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
Application application = appFactory.getApplication();