You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2012/06/19 09:22:20 UTC

svn commit: r1351589 - /myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java

Author: bommel
Date: Tue Jun 19 07:22:20 2012
New Revision: 1351589

URL: http://svn.apache.org/viewvc?rev=1351589&view=rev
Log:
Merged from trunk
TOBAGO-1147
Avoid prepareRenderer call for unrendered Components during Ajax Call [from revision 1344633]

Modified:
    myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java   (contents, props changed)

Modified: myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java?rev=1351589&r1=1351588&r2=1351589&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java (original)
+++ myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java Tue Jun 19 07:22:20 2012
@@ -88,6 +88,9 @@ public class EncodeAjaxCallback implemen
 
   // TODO merge with RenderUtils.prepareRendererAll
   public static void prepareRendererAll(FacesContext facesContext, UIComponent component) throws IOException {
+    if (!component.isRendered()) {
+      return;
+    }
     RendererBase renderer = ComponentUtils.getRenderer(facesContext,  component);
     boolean prepareRendersChildren = false;
     if (renderer != null) {

Propchange: myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java
------------------------------------------------------------------------------
--- svn:mergeinfo (added)
+++ svn:mergeinfo Tue Jun 19 07:22:20 2012
@@ -0,0 +1 @@
+/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/EncodeAjaxCallback.java:1341831,1341901,1343719,1344633,1349356