I agree: Of course the GWT serialization is the most straightforward
way for the communication. And I would recommend to use it as long as
you don't have any special requirements. When you have one client and
one server there's no reason for using XML or JSON.

But as soon your client isn't the only one and you want to offer some
kind of REST interface, XML and/or JSON definitely make sense. Then
frameworks like Piriti or Acris (http://code.google.com/p/acris/wiki/
GWTJsonizer) can take care of mapping the XML / JSON to the client
side POJOs.

- Harald

On 25 Aug., 17:44, "[email protected]" <[email protected]> wrote:
> I concur, seems like they're trying to overcomplicate it.  Unless it
> requires either JSON or XML, but the OP did say theserialization
> format didn't matter.  I would suggest GWT-RPCserializationas 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 <[email protected]> wrote:
>
>
>
>
>
>
>
> > I just started with GWT so may be missing something - but why not just use
> > the default GWTserializationby 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 
> > <[email protected]>wrote:
>
> > > The JSONserializationis 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
> > >serializationworks:
>
> > >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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <
> > > [email protected]> 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
> > > [email protected].
> > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > [email protected]<google-web-toolkit%2Bunsubs
> > > > > > > >  [email protected]><google-web-toolkit%2Bunsubs
> > > [email protected]>
> > > > > > > > .
> > > > > > > > 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 [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-web-toolkit%2Bunsubs
> > >  [email protected]>
> > > .
> > > 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to