SmartGWTPro 3.1p
GWT 2.5.0
I am using a ListGrid with datasource using JSON format. In our case, the data coming back from the URL can be non-JSON, e.g. when the HTTP session expired, for that I want to handle it differently.
I want to intercept the data before the datasource parse the data into JSON, can you please instruct me on how to accomplish that?
I have tried overwriting transformResponse() of DataSource class. When format is JSON, I am not sure how to interpret the 'data' parameter. When format is CUSTOM, 'data' is the raw String data, but doing a super.transformResponse() does not seem to format the data into ListGridFields. Please help.
GWT 2.5.0
I am using a ListGrid with datasource using JSON format. In our case, the data coming back from the URL can be non-JSON, e.g. when the HTTP session expired, for that I want to handle it differently.
I want to intercept the data before the datasource parse the data into JSON, can you please instruct me on how to accomplish that?
I have tried overwriting transformResponse() of DataSource class. When format is JSON, I am not sure how to interpret the 'data' parameter. When format is CUSTOM, 'data' is the raw String data, but doing a super.transformResponse() does not seem to format the data into ListGridFields. Please help.
Comment