Ok to answer my own question - should have read this thread more closely - looks like the object needs to be cast in the GwtRpcDataSource, ie, something like:
Anyway, keep up the excellent work!
jd
Code:
protected void copyValues(T from, ListGridRecord to) { DataSourceField[] fields = getFields(); for (DataSourceField field : fields) { String name = field.getName(); Object value = getValueOf(from, name); if (value instanceof Integer){ to.setAttribute(name, ((Integer) value).intValue()); } else if (value instanceof Date){ to.setAttribute(name, (Date) value); } else { to.setAttribute(name, value); } } }
jd
Comment