myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r691079 - /myfaces/tomahawk/trunk/core12/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRenderer.java
Date Mon, 01 Sep 2008 22:55:45 GMT
Author: lu4242
Date: Mon Sep  1 15:55:44 2008
New Revision: 691079

URL: http://svn.apache.org/viewvc?rev=691079&view=rev
Log:
fixed IOOB Exception calculating style index

Modified:
    myfaces/tomahawk/trunk/core12/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRenderer.java

Modified: myfaces/tomahawk/trunk/core12/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core12/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRenderer.java?rev=691079&r1=691078&r2=691079&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core12/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRenderer.java
(original)
+++ myfaces/tomahawk/trunk/core12/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRenderer.java
Mon Sep  1 15:55:44 2008
@@ -640,7 +640,7 @@
         int colStyleIndex = 0;
         for (int i = 0; i < columnStyleIndex; i++)
         {
-            UIComponent child = (UIComponent) uiData.getChildren().get(i);
+            UIComponent child = (UIComponent) uiData.getChildren().get(i % uiData.getChildCount());
             if (child instanceof UIColumns)
             {
                 colStyleIndex += ((UIColumns) child).getRowCount();



Mime
View raw message