Does anyone know of a way to perform the following scenario?
1. Retrieve an EntityProxy
2. Edit the proxy in an editor
3. Submit the changes using a Request Context
4. The server call is rejected due to a server-side validation failure
5. Make some more changes to the proxy
6. Submit the changes again
I've tried going down a couple of routes to do this:
B) Keep a copy of the Context around and try to re-use it: Also a no-go
C) Have the server respond to the failed update in step 4 by returning the modified object and editing and re-submitting that one.
This one was close, but not quite there. I realized that when I edit the returned object and send up the changes ( step 6), the RequestFactory only sends up the changes made during step 5, and not the ones made during step 2.
I guess my question is whether anyone smarter than me has come up with a solution to this scenario?
Thanks,
Eric