On 23 juin, 07:42, maku <[email protected]> wrote:
> Hi,
>
> I heard at a presentation of Google I/O 2009 (wave related) that they
> used JSON data to communicate between client and server.
>
> It was mentioned that in GWT 2.0 JavaScriptObject overlays will be
> allowed to implement a single interface and that this mechanism is
> used in context of JSON communication.
>
> I would like to play around with such a communication mechanism.
>
> Could anybody can explain details about this?
I guess the upcoming "SingleJsoImpl" feature is rather useful for
testing: you can use POJOs implementing the interface for testing, and
JSOs in the app.
The other advantage is that the interface can be shared by your client
and server code and you have some "serialize to JSON" mechanism on the
server-side; so your code looks the same on the client and on the
server.
Note that you unfortunately cannot use a GWT generator to generate the
JSOs from the interface at compile-time (generators run after the JSOs
have been rewritten); but you could have one running in your IDE...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---