I concur, seems like they're trying to overcomplicate it. Unless it requires either JSON or XML, but the OP did say the serialization format didn't matter. I would suggest GWT-RPC serialization as it is probably the easiest to setup. Then you just need to go to/from java objects to xml on the server side for storage.
On Aug 25, 10:46 am, Brett Thomas <brettptho...@gmail.com> wrote: > I just started with GWT so may be missing something - but why not just use > the default GWT serialization by having the object implement IsSerializable. > I've never done this, just remember reading about it. The source code from > this tutorial looks helpfulhttp://developerlife.com/tutorials/?p=131 > > On Wed, Aug 25, 2010 at 10:33 AM, Harald Pehl > <harald.p...@googlemail.com>wrote: > > > > > > > > > The JSON serialization is only in the trunk and not yet available as > > downloadable version. As soon as I finished the documentation for it, > > there will be a new version in the downloads. In the meantime feel > > free to checkout the sources and build by yourself. You can take a > > look at the following unit tests to get a feeling of how the > > serialization works: > > >http://code.google.com/p/piriti/source/browse/trunk/core/src/test/jav... > > >http://code.google.com/p/piriti/source/browse/trunk/core/src/test/jav... > > >http://code.google.com/p/piriti/source/browse/trunk/core/src/test/jav... > > > - Harald > > > On 25 Aug., 15:00, Ciarán <ciaran.mccann....@gmail.com> wrote: > > > I have looked into pirtiy before and messed around with code, but it > > > only seems to be go one way. JSON string to objects and not the other > > > way around which is what I need. I have looked at ton's of librarys > > > > On Aug 18, 1:24 pm, Peter Simun <si...@seges.sk> wrote: > > > > > pirity is the answer :)http://code.google.com/p/piriti/ > > > > > You can serialize your object into XML/JSON and save the serialized > > > > object on the server. > > > > > Peter > > > > > On 17. Aug, 16:48 h., Ciarán <ciaran.mccann....@gmail.com> wrote: > > > > > > Thanks for the reply. > > > > > > I am quite familiar with XML parsers, I used them in the past. Though > > > > > in this situation its not suitable as inherited class most always > > work > > > > > without having to define the added properties in the parsing. I need > > > > > to serialize objects into some kind of file, save it and restore it > > at > > > > > a later date. > > > > > > Thanks again > > > > > > On Aug 17, 2:21 pm, aditya sanas <007aditya.b...@gmail.com> wrote: > > > > > > > Hi > > > > > > > The basic requirement for you is to deal with XML file > > > > > > > So we have jxl.jar which provides APIs to interact with tags and > > elements in > > > > > > xml so > > > > > > > using these API's that are generally known as XML parsers that is > > SAX or DOC > > > > > > parsers. > > > > > > > so use by using these parsers you will be able to deal with XML > > files. > > > > > > > It wont be that difficult for you once you learn how to use these > > parsers. > > > > > > > You will need external jar file jxl.jar > > > > > > > -- > > > > > > Aditya > > > > > > > On Tue, Aug 17, 2010 at 6:00 PM, Ciarán < > > ciaran.mccann....@gmail.com> wrote: > > > > > > > Hi, I am currently working on a GWT app that requires me to > > > > > > > serializes an object client side into maybe XML/JSON or anything > > > > > > > really. Then save that serialized object as a xml/json/.ser file. > > Then > > > > > > > at a later date read that file and reconstruct my object from it. > > > > > > > > I have been searching for days for an answer to this, used > > several > > > > > > > external library, read tutorials, GWT documentation and I still > > not > > > > > > > closer to a solution. Am I totally missing something here? It was > > very > > > > > > > easy to do this in plan Java, but GWT I just can seem to get it > > > > > > > working. > > > > > > > > Thanks > > > > > > > > -- > > > > > > > You received this message because you are subscribed to the > > Google Groups > > > > > > > "Google Web Toolkit" group. > > > > > > > To post to this group, send email to > > google-web-tool...@googlegroups.com. > > > > > > > To unsubscribe from this group, send email to > > > > > > > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2Bunsubs > > > > > > > cr...@googlegroups.com><google-web-toolkit%2Bunsubs > > cr...@googlegroups.com> > > > > > > > . > > > > > > > For more options, visit this group at > > > > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2Bunsubs > > cr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.