Re: GWT Date Serialization problem

2011-03-31 Thread Martin Larsson
On 31. mars 2011 22:33, cri wrote: The solution that I've always used is to pass dates between the GWT client and server as Strings, e.g. MM/dd/. Or set the time component to noon instead of midnight. M. -- You received this message because you are subscribed to the Google Groups Google

Re: When is an object passed over RPC safe to modify?

2011-03-29 Thread Martin Larsson
On 29. mars 2011 08:30, Craig Mitchell wrote: Also, I'd be surprised if the RPC serialization occurred in anything but the current JS thread of execution. So I'd be a stunned mullet if we ran into trouble. True. The more I think about it, the more likely this seems. Doing serialization in

Re: When is an object passed over RPC safe to modify?

2011-03-25 Thread Martin Larsson
I need the status on the server (new, deleted, modified), so I must wait with the modification until I know the objects have been serialized. Even though Javascript is single threaded, the actual RPC-call is done with a separate XMLHttpRequest-object, I'm uncertain if the objects are safe on

When is an object passed over RPC safe to modify?

2011-03-23 Thread Martin Larsson
We're experimenting with background saving in our GWT-app. IOW. we mark objects as 'modified', and then at regular intervals, find all modified objects and pass them to the database for storage. The question is when is it safe to mark the object as 'clean'. The on- success-handler of the