On Jul 1, 3:55 am, Shawn Pearce <[email protected]> wrote: > On Tue, Jun 30, 2009 at 18:49, asianCoolz<[email protected]> wrote: > > > i came across this > > projecthttp://android.git.kernel.org/?p=tools/gwtjsonrpc.git > > . is this just for android or i can use with any app using gwt? any > > overview article,tutorial on this? > > Actually, its not for Android, its for its code review system, Gerrit > Code Review (http://code.google.com/p/gerrit/). But yes, its a > stand-alone module meant to be embedded into any GWT project, not just > Gerrit. Actually, I know at least one other developer who uses it in > an unrelated project, Gert Scholten. He has contributed a few patches > to gwtjsonrpc. > > Best thing for a tutorial is probably the README in the top level of > the directory. Its very, very similar to standard GWT RPC, only it > uses JSON encoding, and has built-in XSRF protection, if the server > knows how to demand/enforce it.
The README is a good tutorial. Note though that the README assumes you are using the provided server-side code, if you do not some limitations change. (Example, the docs note that there is no support for call approximation; which is a server-side only feature). Also worth noting, if you plan to use it for _remote_ JSON services (circumventing the same-origin policy in any way), it doesn't support calling, but does give you a callback handle with automatic object deserializer. You'll have to encode the parameters and make the call yourself. Other then that, it works like a charm, Regards, Gert Scholten --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
