Hi I am using smartgwt 2.5 nightly build from 2011-03-05 and GWT 2.1.1
I need from DataSource to send request in postxml format but with datasource:
I get request in format:
To get request in xml format I have to add operationbindings to datasource even though I do not need to set anything for particular operation.
after adding:
request goes with proper xml format.
Can somebody from isomorphic explain whether it is issue or maybe it has purpose ?
I need from DataSource to send request in postxml format but with datasource:
Code:
public DateDS(String id) { setID(id); setDataProtocol(DSProtocol.POSTXML); setDataURL("/Date.Service"); DataSourceIntegerField dsifDateId = new DataSourceIntegerField("idDaty", "Id"); dsifDateId.setPrimaryKey(true); DataSourceDateTimeField dsdtfDate = new DataSourceDateTimeField("data", "Data"); setFields(dsifDateId, dsdtfDate); }
Code:
data=2011-03-08T07%3A53%3A41&_operationType=add&_oldValues=%7B%7D&_componentId=isc_DynamicForm_0&_dataSource=DateDS&isc_metaDataPrefix=_&isc_dataFormat=xml
after adding:
Code:
OperationBinding fetchOB = new OperationBinding(); fetchOB.setOperationType(DSOperationType.FETCH); OperationBinding addOB = new OperationBinding(); addOB.setOperationType(DSOperationType.ADD); OperationBinding updateOB = new OperationBinding(); updateOB.setOperationType(DSOperationType.UPDATE); setOperationBindings(addOB,fetchOB,updateOB);
Can somebody from isomorphic explain whether it is issue or maybe it has purpose ?
Comment