Author: abelevich
Date: 2007-11-28 13:07:29 -0500 (Wed, 28 Nov 2007)
New Revision: 4324
Modified:
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
Log:
RF-953
Modified:
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
===================================================================
---
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-11-28
18:06:26 UTC (rev 4323)
+++
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-11-28
18:07:29 UTC (rev 4324)
@@ -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