Hello,
we extensively use Spring services for our DataSources. One neat thing is the ability for smartgwt to match the data values to a TO in the method call, like this:
[code]
public DSResponse add(UserReporterTO to, DSRequest request)
[code]
However, i just tried to do the same for a custom operation, and it seems that the data fields are not matched.
datasource (sorry for bad formatting, couldn't make it work):
In the client i do something like this:
and on the server i have
The params in the values have the same names as the fields in the to. The TO object is created, but all values are null even though they exist in the map.
Is there any way to do what i want, so that i don't have to manually drag out the parameters from the map?
Cheers
we extensively use Spring services for our DataSources. One neat thing is the ability for smartgwt to match the data values to a TO in the method call, like this:
[code]
public DSResponse add(UserReporterTO to, DSRequest request)
[code]
However, i just tried to do the same for a custom operation, and it seems that the data fields are not matched.
datasource (sorry for bad formatting, couldn't make it work):
Code:
<operationBinding operationType="custom" operationId="send"> <serverMethod>send</serverMethod> </operationBinding> <serverObject lookupStyle="spring" bean="messageWebService"></serverObject>
Code:
Map dataMap = form.getValues(); messageDS.performCustomOperation("send", new Record(dataMap), new NubaOKDSCallback() { @Override public void doExecute(ResponseData rData, DSResponse response, Object o, DSRequest dsRequest) {
Code:
public NubaDSResponse send(Map values, UserMessageTO to)
Is there any way to do what i want, so that i don't have to manually drag out the parameters from the map?
Cheers
Comment