I'm am using ListGrid.removeData() to remove an item from a listgrid but am getting this exception:
Can you tell me what the problem is with the DSRequest message I am sending to the server?
Thx
(Using SmartGWTPower 2.3 edition)
Code:
=== 2010-09-05 21:40:46,179 [0-16] INFO RequestContext - URL: '/slims/sc/IDACall', User-Agent: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.17.8 (KHTML, like Gecko) Version/5.0.1 Safari/533.17.8': Safari with Accept-Encoding header
=== 2010-09-05 21:40:46,180 [0-14] INFO RequestContext - URL: '/slims/sc/IDACall', User-Agent: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.17.8 (KHTML, like Gecko) Version/5.0.1 Safari/533.17.8': Safari with Accept-Encoding header
=== 2010-09-05 21:40:46,193 [0-14] DEBUG XML - Parsed XML from (in memory stream): 13ms
=== 2010-09-05 21:40:46,194 [0-16] DEBUG XML - Parsed XML from (in memory stream): 14ms
=== 2010-09-05 21:40:46,223 [0-14] DEBUG RPCManager - Processing 1 requests.
=== 2010-09-05 21:40:46,226 [0-14] DEBUG RPCManager - Request #1 (DSRequest) payload: {
criteria:{
attm_pk:86
},
operationConfig:{
dataSource:"Attachment",
operationType:"remove"
},
componentId:"isc_AGrid$SlimsListGrid_22",
appID:"builtinApplication",
operation:"Attachment_remove",
oldValues:{
attm_pk:86
}
}
=== 2010-09-05 21:40:46,226 [0-14] INFO IDACall - Performing 1 operation(s)
=== 2010-09-05 21:40:46,234 [0-16] DEBUG RPCManager - Processing 1 requests.
=== 2010-09-05 21:40:46,234 [0-16] ERROR IDACall - Top-level servlet error:
java.lang.ClassCastException: org.apache.commons.collections.map.LinkedMap cannot be cast to java.lang.String
at com.isomorphic.datasource.DSRequest.getOperation(DSRequest.java:503)
at com.isomorphic.datasource.DSRequest.<init>(DSRequest.java:242)
at com.isomorphic.datasource.DSRequest.<init>(DSRequest.java:378)
at com.isomorphic.rpc.RPCManager.parseRequest(RPCManager.java:1464)
Thx
(Using SmartGWTPower 2.3 edition)
Comment