Author: abelevich
Date: 2007-11-28 13:06:26 -0500 (Wed, 28 Nov 2007)
New Revision: 4323
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
Log:
RF-953
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
===================================================================
---
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-11-28
17:59:50 UTC (rev 4322)
+++
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-11-28
18:06:26 UTC (rev 4323)
@@ -72,6 +72,11 @@
int currentRow = holder.getRowCounter();
Integer columns = (Integer) table.getAttributes().get("columns");
int cols = (null!=columns &&
columns.intValue()!=Integer.MIN_VALUE)?columns.intValue():1;
+
+ if (columns.intValue() == 0) {
+ cols = 1;
+ }
+
int gridRowCounter = holder.getGridRowCounter();
if ( cols >0 && currentRow%cols==0) {
if (currentRow != 0 ) {
Show replies by date