Author: nbelaevski
Date: 2008-04-30 11:57:22 -0400 (Wed, 30 Apr 2008)
New Revision: 8383
Modified:
trunk/framework/api/src/main/java/org/richfaces/model/CacheableTreeDataModel.java
Log:
http://jira.jboss.com/jira/browse/RF-3316
Modified:
trunk/framework/api/src/main/java/org/richfaces/model/CacheableTreeDataModel.java
===================================================================
---
trunk/framework/api/src/main/java/org/richfaces/model/CacheableTreeDataModel.java 2008-04-30
15:52:19 UTC (rev 8382)
+++
trunk/framework/api/src/main/java/org/richfaces/model/CacheableTreeDataModel.java 2008-04-30
15:57:22 UTC (rev 8383)
@@ -72,6 +72,14 @@
}
}
+ private final static DataVisitor NULL_VISITOR = new DataVisitor() {
+
+ public void process(FacesContext context, Object rowKey, Object argument) throws
IOException {
+ //do nothing
+ }
+
+ };
+
private TreeDataModel<T> treeDataModel;
public boolean isLeaf() {
@@ -144,7 +152,7 @@
if (convertedKey != null) {
final TreeRowKey treeRowKey = (TreeRowKey) convertedKey;
try {
- walk(context, null, new TreeRange() {
+ walk(context, NULL_VISITOR, new TreeRange() {
public boolean processChildren(TreeRowKey rowKey) {
return rowKey == null || rowKey.isSubKey(treeRowKey);