Sunday, August 28, 2011

Re: AutoBean deserialization facing problem with "EntityProxyId stableId()"

To create a self-contained message that encapsulates a proxy:

 RequestFactory myFactory = ...;  MyFooProxy someProxy = ...;    DefaultProxyStore store = new DefaultProxyStore();  ProxySerializer ser = myFactory.getSerializer(store);  // More than one proxy could be serialized  String key = ser.serialize(someProxy);  // Create the flattened representation  String payload = store.encode();  
To recreate the object:
 ProxyStore store = new DefaultProxyStore(payload);  ProxySerializer ser = myFactory.getSerializer(store);  MyFooProxy someProxy = ser.deserialize(MyFooProxy.class, key);

I'm using html5 client-side storage, so I've to serialize EntityProxies. In that case, should we store the key seperately. Or am I missing something??

Thanks,

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Gmlq-10pWB8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate