Hi,
I'm using RestDataSource with remote JSON sources for a while now and it works just fine in getParams protocol.
I would now like to use postParams or postMessage for specific sources and it does not seem to work. The data source keeps issuing GET queries to my address.
When I open the page, the browser seems to issue only GET
I tried this with various stable builds from SmartGWT 3.0p and 3.1p and it always had this behaviour.
Can you tell me if I missed something ?
Thanks !
Yannick
SmartGWT 3.0p and 3.1p
Browser: Chrome 24.0.1312.57
GWT 2.5.0
I'm using RestDataSource with remote JSON sources for a while now and it works just fine in getParams protocol.
I would now like to use postParams or postMessage for specific sources and it does not seem to work. The data source keeps issuing GET queries to my address.
Code:
RestDataSource dataSource = new RestDataSource(); dataSource.setFetchDataURL("/fetch"); dataSource.setDataProtocol(DSProtocol.POSTPARAMS); ListGrid grid = new ListGrid(); grid.setDataSource(dataSource); grid.fetchData();
Code:
GET http://localhost:8080/fetch?_operationType=fetch&_startRow=0&_endRow=75&_te…0&_dataSource=isc_RestDataSource_0&isc_metaDataPrefix=_&isc_dataFormat=xml 404 (Not Found)
Can you tell me if I missed something ?
Thanks !
Yannick
SmartGWT 3.0p and 3.1p
Browser: Chrome 24.0.1312.57
GWT 2.5.0
Comment