If I create a RestDataSource and I specify POSTMESSAGE data protocol in this way:
RestDataSource dataSource = new RestDataSource();
dataSource.setDataFormat(DSDataFormat.JSON);
dataSource.setDataProtocol(DSProtocol.POSTMESSAGE);
dataSource.setPrettyPrintJSON(Boolean.TRUE);
dataSource.setSendMetaData(Boolean.TRUE);
POSTMESSAGE is completely ignored and the data is sent by get/post params.
To be able to receive the data as a message I’ve to override all the operation bindings with
dataSource.setOperationBindings(...);
. Then it works but I don’t know why I’ve to override. I understand that operations has more preference about default setting. But I’ve been looking at the code of RestDataSource/DataSource and I don’t see in any place where it define special operationbindings.
Some one can help me to understand this or point to what source code to look?
A lot of thanks in advance,
SmartGWT Version:smartgwt-2.2