Re: Hierachy of autobean for state serialization

2012-07-11 Thread amir
While I agree that RequestFactory is the ultimate solution, we don't always have the luxury of selecting which server to communicate with .. I am bound to using JSON-RPC as our server end is in .NET .. I faced the same polymorphism solution, and solved it by creating a mondo interface .. I

Re: Hierachy of autobean for state serialization

2011-06-03 Thread Derek
Thanks for posting this, Panam. I was just starting to consider using AutoBean with LocalStorage, since storing a JSON string seems like the best solution than rolling my own custom serializer. I haven't gotten too far into it beyond some simple test cases. For 2), I seem to recall seeing that

Re: Hierachy of autobean for state serialization

2011-06-02 Thread Panam
Hm, I am just looking for a way to enocde and persist (webstore) state (some POJO properties) on the client. I have difficulties to see see how the RequestFactory will help me here as my intention is that it is for client server communication. However, it ought to be possible (at least, it has to

Re: Hierachy of autobean for state serialization

2011-06-02 Thread Patrick Julien
On Jun 2, 2011 3:48 AM, Panam pandem...@googlemail.com wrote: Hm, I am just looking for a way to enocde and persist (webstore) state (some POJO properties) on the client.

Re: Hierachy of autobean for state serialization

2011-06-02 Thread J.Ganesan
If I understand correctly, you want to persist/retrieve objects in the client side. If there are not too many classes, you can define your own format like classId versionId binaryConvertedField1 binaryConvertedField2 ... If your classes have collections or cross references or circular

Hierachy of autobean for state serialization

2011-06-01 Thread Panam
Hi, I am considering to use autobeans for state serialization, i.e. a hierachy of graphical objects sharing subsets of common properties. Each has its specifics (specific properties, e.g. specific fields that should be serialized), but'd like best to find a common state serialization for them.

Re: Hierachy of autobean for state serialization

2011-06-01 Thread Panam
Can sombody just comment on this? I have a decision to make Related to 2): is polymorphism indeed impossible with autobeans so that I lose subtype specifics when serialzing lists of objects with different subypes (but a common supertype of course)? Thanks panam -- You received this

Re: Hierachy of autobean for state serialization

2011-06-01 Thread Patrick Julien
Honestly, this is all gibberish to me. Why are you even doing this? RequestFactory offers you a way to encode/decode your data, supports polymorphism, etc. Intro to requestfactory here: http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html Keep in mind here that the entity