myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1136983 - /myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
Date Fri, 17 Jun 2011 19:10:49 GMT
Author: lu4242
Date: Fri Jun 17 19:10:49 2011
New Revision: 1136983

URL: http://svn.apache.org/viewvc?rev=1136983&view=rev
Log:
MYFACES-2395 Cant' run two JSF portlets on the same portal page

Modified:
    myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java

Modified: myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java?rev=1136983&r1=1136982&r2=1136983&view=diff
==============================================================================
--- myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
(original)
+++ myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
Fri Jun 17 19:10:49 2011
@@ -1155,7 +1155,10 @@ public final class RendererUtils
         {
             // look for the renderkit in the request
             Map requestMap = facesContext.getExternalContext().getRequestMap();
-            RenderKitFactory factory = (RenderKitFactory) requestMap.get(RENDER_KIT_IMPL);
+            
+            Object f = requestMap.get(RENDER_KIT_IMPL);
+            
+            RenderKitFactory factory = (f instanceof RenderKitFactory) ? (RenderKitFactory)
f : null;
 
             if (factory != null)
             {



Mime
View raw message