empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r1371328 - /empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java
Date Thu, 09 Aug 2012 17:32:05 GMT
Author: francisdb
Date: Thu Aug  9 17:32:05 2012
New Revision: 1371328

URL: http://svn.apache.org/viewvc?rev=1371328&view=rev
Log:
revert EMPIREDB-154 <e:input> component failed to render inside a datatable

Modified:
    empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java

Modified: empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java?rev=1371328&r1=1371327&r2=1371328&view=diff
==============================================================================
--- empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java
(original)
+++ empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java
Thu Aug  9 17:32:05 2012
@@ -236,15 +236,13 @@ public abstract class InputControl
     public void renderInput(UIComponent comp, InputInfo ii, FacesContext context, boolean
encode)
         throws IOException
     {
-        List<UIComponent> children = comp.getChildren();
-        if (!children.isEmpty())
-            children.clear();
-        createInputComponents(comp, ii, context, children);
+        int count = comp.getChildCount(); 
+        if (count<1)
+            createInputComponents(comp, ii, context, comp.getChildren());
         // Encode all
         if (!encode)
             return;
-        
-        for (UIComponent child : children)
+        for (UIComponent child : comp.getChildren())
         {
             child.encodeAll(context);
         }



Mime
View raw message