Author: abelevich
Date: 2007-06-25 12:29:09 -0400 (Mon, 25 Jun 2007)
New Revision: 1301
Modified:
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/model/DataModelCache.java
Log:
override getId method
Modified:
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/model/DataModelCache.java
===================================================================
---
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/model/DataModelCache.java 2007-06-25
16:28:03 UTC (rev 1300)
+++
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/model/DataModelCache.java 2007-06-25
16:29:09 UTC (rev 1301)
@@ -91,7 +91,7 @@
log.debug("Trying to get object by id" + id);
}
//First try to find data in inner cache
- //If not fo9und - get it from original model
+ //If not found - get it from original model
Object cached = secondaryMapping.get(id);
if (cached == null) {
@@ -173,6 +173,9 @@
gridDataModel.setWrappedData(arg0);
}
+ public Object getId(Object o) {
+ return gridDataModel.getId(o);
+ }
public void walk(FacesContext context, DataVisitor visitor, Range range,
Object argument) throws IOException {
Show replies by date