Maybe it should be done as a new ErxFormat.

Envoyé de mon iPhone

Le 2012-10-14 à 16:51, "Robert Hanviriyapunt" <[email protected]> a écrit :

> 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 protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
> 
> This email sent to [email protected]
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to