SmartGWT ver. 2.2
here is the data which is hosted on http://localhost:9090/cdr/records (just the file in the "webapps/cdr" directory)
here is the code which is hosted on http://localhost:8080/cdr/cdr.html
as result I have the empty grid and the only message (in the eclipse's console) is:
Please, help me to determinate the error.
here is the data which is hosted on http://localhost:9090/cdr/records (just the file in the "webapps/cdr" directory)
Code:
callback([{"id":"1","value":"Yes""},{"id":"2","value":"No"},{"id":"3","value"="Maybe"}];)
here is the code which is hosted on http://localhost:8080/cdr/cdr.html
Code:
public void onModuleLoad() { XJSONDataSource remoteDS = new XJSONDataSource(); remoteDS.setDataFormat(DSDataFormat.JSON); remoteDS.setDataURL("http://localhost:9090/cdr/records"); DataSourceTextField fId = new DataSourceTextField("id", "ID"); DataSourceTextField fName = new DataSourceTextField("value", "Value"); fId.setPrimaryKey(true); remoteDS.setFields(fId, fName); ListGrid lg = new ListGrid(); lg.setAutoFetchData(true); lg.setHeight100(); lg.setWidth100(); lg.setDataSource(remoteDS); lg.draw(); }
Code:
"Uncaught JavaScript exception [Script error.] in , line 0"
Comment