myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bara...@apache.org
Subject svn commit: r344457 - /myfaces/api/trunk/src/java/javax/faces/render/Renderer.java
Date Tue, 15 Nov 2005 22:47:34 GMT
Author: baranda
Date: Tue Nov 15 14:47:30 2005
New Revision: 344457

URL: http://svn.apache.org/viewcvs?rev=344457&view=rev
Log:
Fixes MYFACES-443 (1)

Modified:
    myfaces/api/trunk/src/java/javax/faces/render/Renderer.java

Modified: myfaces/api/trunk/src/java/javax/faces/render/Renderer.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/render/Renderer.java?rev=344457&r1=344456&r2=344457&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/render/Renderer.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/render/Renderer.java Tue Nov 15 14:47:30 2005
@@ -15,10 +15,12 @@
  */
 package javax.faces.render;
 
+import java.io.IOException;
+import java.util.List;
+
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
 import javax.faces.convert.ConverterException;
-import java.io.IOException;
 
 /**
  * @author Manfred Geiler (latest modification by $Author$)
@@ -47,6 +49,24 @@
     {
         if (context == null) throw new NullPointerException("context");
         if (component == null) throw new NullPointerException("component");
+        
+        List children = component.getChildren();
+        for (int i=0; i<children.size(); i++) 
+        {
+            UIComponent child = (UIComponent) children.get(i);
+            
+            if (!child.isRendered())
+            {
+                continue;
+            }
+
+            child.encodeBegin(context);
+            if (child.getRendersChildren())
+            {
+                child.encodeChildren(context);
+            }
+            child.encodeEnd(context);
+        }
     }
 
     public void encodeEnd(FacesContext context,



Mime
View raw message