myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r886025 - /myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java
Date Wed, 02 Dec 2009 00:48:08 GMT
Author: lu4242
Date: Wed Dec  2 00:48:07 2009
New Revision: 886025

URL: http://svn.apache.org/viewvc?rev=886025&view=rev
Log:
MYFACES-2437 columnClasses must not be rendered if colums > columnClasses

Modified:
    myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java

Modified: myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java?rev=886025&r1=886024&r2=886025&view=diff
==============================================================================
--- myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java
(original)
+++ myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java
Wed Dec  2 00:48:07 2009
@@ -245,7 +245,12 @@
             if(!hasColumnStyle()) {
                 return null;
             }
-            return _columnStyle[idx % _columnStyle.length];
+            //return _columnStyle[idx % _columnStyle.length];
+            if (idx < _columnStyle.length)
+            {
+                return _columnStyle[idx];
+            }
+            return null;   
         }
 
         public boolean hasRowStyle() {



Mime
View raw message