myfaces-commits mailing list archives

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

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

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

Modified: myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java?rev=1136984&r1=1136983&r2=1136984&view=diff
==============================================================================
--- myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
(original)
+++ myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
Fri Jun 17 19:11:10 2011
@@ -1173,7 +1173,10 @@ public final class RendererUtils
 
     /**
      * Gets the ResponseStateManager for the renderKit Id provided
+     * 
+     * @deprecated use FacesContext.getRenderKit() or getRenderKitFactory().getRenderKit(context,
renderKitId).getResponseStateManager()
      */
+    @Deprecated
     public static ResponseStateManager getResponseStateManager(FacesContext facesContext,
String renderKitId)
             throws FacesException
     {
@@ -1182,8 +1185,8 @@ public final class RendererUtils
         if (renderKit == null)
         {
             // look for the renderkit in the request
-            Map requestMap = facesContext.getExternalContext().getRequestMap();
-            RenderKitFactory factory = (RenderKitFactory) requestMap.get(RENDER_KIT_IMPL);
+            Map attributesMap = facesContext.getAttributes();
+            RenderKitFactory factory = (RenderKitFactory) attributesMap.get(RENDER_KIT_IMPL);
 
             if (factory != null)
             {
@@ -1198,7 +1201,7 @@ public final class RendererUtils
                     throw new IllegalStateException("Factory is null");
                 }
 
-                requestMap.put(RENDER_KIT_IMPL, factory);
+                attributesMap.put(RENDER_KIT_IMPL, factory);
 
                 renderKit = factory.getRenderKit(facesContext, renderKitId);
             }



Mime
View raw message