myfaces-commits mailing list archives

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

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

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

Modified: myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java?rev=1178533&r1=1178532&r2=1178533&view=diff
==============================================================================
--- myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java
(original)
+++ myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlTableRendererBase.java
Mon Oct  3 19:42:14 2011
@@ -772,7 +772,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