You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ba...@apache.org on 2006/01/30 00:42:16 UTC

svn commit: r373396 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRenderer.java

Author: baranda
Date: Sun Jan 29 15:42:13 2006
New Revision: 373396

URL: http://svn.apache.org/viewcvs?rev=373396&view=rev
Log:
Applied patch for MYFACES-1072. Thanks to Lance Frogman

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRenderer.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRenderer.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRenderer.java?rev=373396&r1=373395&r2=373396&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRenderer.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRenderer.java Sun Jan 29 15:42:13 2006
@@ -123,7 +123,7 @@
                     if(!child.isRendered()) continue;
                     // draw the element's cell
                     writer.startElement(HTML.TD_ELEM, newspaperTable);
-                    if(styles.hasColumnStyle()) writer.writeAttribute(HTML.CLASS_ATTR, styles.getColumnStyle(j), null);
+                    if(styles.hasColumnStyle()) writer.writeAttribute(HTML.CLASS_ATTR, styles.getColumnStyle(nc * newspaperTable.getChildCount() + j), null);
                     RendererUtils.renderChild(facesContext, child);
                     writer.endElement(HTML.TD_ELEM);
                 }