Author: abelevich
Date: 2007-06-25 12:23:48 -0400 (Mon, 25 Jun 2007)
New Revision: 1295
Modified:
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/datagrid/bean/ChannelDataModel2.java
Log:
add getId method
Modified:
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/datagrid/bean/ChannelDataModel2.java
===================================================================
---
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/datagrid/bean/ChannelDataModel2.java 2007-06-25
15:41:45 UTC (rev 1294)
+++
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/datagrid/bean/ChannelDataModel2.java 2007-06-25
16:23:48 UTC (rev 1295)
@@ -53,6 +53,12 @@
return channel.findIssueByKey((Key) id);
}
+
+ @Override
+ public Object getId(Object o) {
+ Issue issue = (Issue)o;
+ return issue.getKey();
+ }
/* (non-Javadoc)
* @see org.richfaces.model.GridDataModel#loadData(int, int,
org.richfaces.model.SortOrder)
Show replies by date