myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r991414 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
Date Wed, 01 Sep 2010 01:25:31 GMT
Author: lu4242
Date: Wed Sep  1 01:25:31 2010
New Revision: 991414

URL: http://svn.apache.org/viewvc?rev=991414&view=rev
Log:
MYFACES-2896 PartialViewContextImpl ignores executeIds/renderIds/renderAll of wrapping PartialViewContext

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

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java?rev=991414&r1=991413&r2=991414&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
Wed Sep  1 01:25:31 2010
@@ -347,7 +347,8 @@ public class PartialViewContextImpl exte
 
     private void processPartialExecute(UIViewRoot viewRoot, PhaseId phaseId) 
     {
-        Collection<String> executeIds = getExecuteIds();
+        PartialViewContext pvc = _facesContext.getPartialViewContext();
+        Collection<String> executeIds = pvc.getExecuteIds();
         if (executeIds == null || executeIds.isEmpty()) 
         {
             return;
@@ -376,6 +377,7 @@ public class PartialViewContextImpl exte
         // note that we cannot use this.getPartialResponseWriter(), because
         // this could cause problems if PartialResponseWriter is wrapped
         PartialResponseWriter writer = _facesContext.getPartialViewContext().getPartialResponseWriter();
+        PartialViewContext pvc = _facesContext.getPartialViewContext();
         
         ResponseWriter oldWriter = _facesContext.getResponseWriter();
         boolean inDocument = false;
@@ -397,13 +399,13 @@ public class PartialViewContextImpl exte
             inDocument = true;
             _facesContext.setResponseWriter(writer);
 
-            if (isRenderAll())
+            if (pvc.isRenderAll())
             {
                 processRenderAll(viewRoot, writer);
             }
             else
             {
-                Collection<String> renderIds = getRenderIds();
+                Collection<String> renderIds = pvc.getRenderIds();
                 //Only apply partial visit if we have ids to traverse
                 if (renderIds != null && !renderIds.isEmpty())
                 {



Mime
View raw message