myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1069676 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/FacesContextFactoryImpl.java
Date Fri, 11 Feb 2011 05:44:16 GMT
Author: lu4242
Date: Fri Feb 11 05:44:16 2011
New Revision: 1069676

URL: http://svn.apache.org/viewvc?rev=1069676&view=rev
Log:
MYFACES-3039 MyFaces broken in Portlet environment: Fails to support extendable FacesContextFactory/FacesContext/ExternalContext

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/FacesContextFactoryImpl.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/FacesContextFactoryImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/FacesContextFactoryImpl.java?rev=1069676&r1=1069675&r2=1069676&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/FacesContextFactoryImpl.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/FacesContextFactoryImpl.java
Fri Feb 11 05:44:16 2011
@@ -149,8 +149,8 @@ public class FacesContextFactoryImpl ext
             }
         }
         
-        if (context instanceof ServletContext)
-        {
+        //if (context instanceof ServletContext)
+        //{
             FacesContext facesContext;
             if (externalContext instanceof ReleaseableExternalContext)
             {
@@ -169,9 +169,9 @@ public class FacesContextFactoryImpl ext
             
             return facesContext;
             //return new FacesContextImpl((ServletContext)context, (ServletRequest)request,
(ServletResponse)response);
-        }
+        //}
 
-        throw new FacesException("Unsupported context type " + context.getClass().getName());
+        //throw new FacesException("Unsupported context type " + context.getClass().getName());
     }
 
     public void release()



Mime
View raw message