myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ssilv...@apache.org
Subject svn commit: r209884 - /myfaces/impl/trunk/src/java/org/apache/myfaces/portlet/MyFacesGenericPortlet.java
Date Fri, 08 Jul 2005 20:46:03 GMT
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();



Mime
View raw message