O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

RPC data types

Server methods can accept and return complex types with packing and unpacking handled automatically even though client-side code is JavaScript (not Java) at runtime.

Legal types

The following is a list of legal data types that can be passed over the network using GWT RPC:

  • Primitives
    • int, double, boolean, and so on
  • Wrappers
    • Integer, Double, Boolean, and so on
  • A subset of standard Java types
  • Custom classes that implement Serializable
  • Arrays containing any of the given types

Note that we can also cut down on the GWT JavaScript size, by instructing GWT not to generate serialization and deserialization code ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required