Author: nbelaevski
Date: 2007-04-12 14:50:29 -0400 (Thu, 12 Apr 2007)
New Revision: 390
Modified:
trunk/richfaces/dataTable/src/main/java/org/richfaces/component/UIDataTable.java
Log:
commons-collections bug workaround
Modified:
trunk/richfaces/dataTable/src/main/java/org/richfaces/component/UIDataTable.java
===================================================================
---
trunk/richfaces/dataTable/src/main/java/org/richfaces/component/UIDataTable.java 2007-04-12
16:41:26 UTC (rev 389)
+++
trunk/richfaces/dataTable/src/main/java/org/richfaces/component/UIDataTable.java 2007-04-12
18:50:29 UTC (rev 390)
@@ -93,6 +93,10 @@
}
}
+
+ //commons-collections 2.x bug workaround
+ dataChildren.hasNext();
+
return dataChildren;
}
@@ -103,8 +107,7 @@
*/
public Iterator fixedChildren() {
// Iterate over facets, non-column childrens and column's facets.
- IteratorChain fixedChildren = new IteratorChain(getFacets().values()
- .iterator());
+ IteratorChain fixedChildren = new IteratorChain(getFacets().values().iterator());
fixedChildren.addIterator(new FilterIterator(getChildren().iterator(),
isNotColumn));
// Append all columns facets.
@@ -116,6 +119,10 @@
}
}
+
+ //commons-collections 2.x bug workaround
+ fixedChildren.hasNext();
+
return fixedChildren;
}
Show replies by date