this was reviewed and actually this is not a problem at all. In your sample everything functions as it is supposed to.
The solution for you would be to use dsResponse.getDataList() instead of dsResponse.getRecords(), like shown below:
Code:
package com.smartgwt.sample.showcase.server; import java.util.List; import com.isomorphic.datasource.DSRequest; import com.isomorphic.datasource.DSResponse; import com.isomorphic.log.Logger; public class CitiesDMI { Logger log = new Logger(CitiesDMI.class.getName()); public DSResponse fetch(DSRequest dsRequest) throws Exception { log.info("processing DMI fetch operation"); DSResponse dsResponse = dsRequest.execute(); [b]List data = dsResponse.getDataList();[/b] dsResponse.setData(data); return dsResponse; } }
Leave a comment: