myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1178534 - /myfaces/core/branches/2.0.x/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java
Date Mon, 03 Oct 2011 19:42:25 GMT
Author: lu4242
Date: Mon Oct  3 19:42:25 2011
New Revision: 1178534

URL: http://svn.apache.org/viewvc?rev=1178534&view=rev
Log:
small fix render colspan="0" is not necessary

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

Modified: myfaces/core/branches/2.0.x/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java?rev=1178534&r1=1178533&r2=1178534&view=diff
==============================================================================
--- myfaces/core/branches/2.0.x/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java
(original)
+++ myfaces/core/branches/2.0.x/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java
Mon Oct  3 19:42:25 2011
@@ -914,7 +914,11 @@ public class HtmlTableRendererBase exten
         {
             totalColumns = totalColumns + newsPaperColumns - 1;
         }
-        writer.writeAttribute(HTML.COLSPAN_ATTR, new Integer(totalColumns), null);
+        // Only render colspan if is > 0
+        if (totalColumns > 0)
+        {
+            writer.writeAttribute(HTML.COLSPAN_ATTR, new Integer(totalColumns), null);
+        }
         if (styleClass != null)
         {
             writer.writeAttribute(HTML.CLASS_ATTR, styleClass, null);



Mime
View raw message