Hi, I can not populate a grid with a call to the server via JSON and struts. Calls to action are mapped into the struts-config.xml file
this not work
Code:
dataSource = new DataSource(); dataSource.setDataFormat(DSDataFormat.JSON); dataSource.setDataURL(service/service.do); DataSourceTextField networkField = new DataSourceTextField("networkName", "Network",300); dataSource.setFields(networkField); final ListGrid serviceGrid = new ListGrid(); serviceGrid.setWidth100(); serviceGrid.setHeight(150); // serviceGrid.setAutoFetchData(true); serviceGrid.setShowAllRecords(true); serviceGrid.setCanResizeFields(true); serviceGrid.setAutoFitData(Autofit.VERTICAL); serviceGrid.setShowFilterEditor(true); serviceGrid.setAutoFitMaxRecords(10); serviceGrid.setDataSource(dataSource);