Making SmartGWT RestDataSource Play Along With ERRest
Making SmartGWT RestDataSource Play Along With ERRest
- Subject: Making SmartGWT RestDataSource Play Along With ERRest
- From: Robert Hanviriyapunt <email@hidden>
- Date: Sun, 14 Oct 2012 15:48:51 -0500
SmartGWT is a strange animal.
I like it's idea of various DataSource classes, specifically RestDataSource. And I love WebObjects and am looking to employ ERRest. I have GET and PUT being called for indexAction and updateAction. I have indexAction returning my EOs in an container Dictionary to provide other data required by SmartGWT. But now I'm trying to handle the PUT request by SmartGWT to my Controller.updateAction method and have the following JSON structure to deal with:
{
transaction: {
operations: [{
dataSource:"countryDS",
operationType:"update",
data: {
pk: 1
countryName: "Edited Value",
capital: "Edited Value",
continent: "Edited Value"
}
}, {
dataSource:"countryDS",
operationType:"update",
data: {
pk: 2,
capital: "Edited Value",
popuilation: 123456
}
}]
}
}
My updated fields are in the values for the keys named "data". Is there an example of handling this data in the REST update request? Or anyone done this before that hasn't posted about it that can offer any advice?
= Robert =
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden