File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes post complex objects to iframe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "post complex objects to iframe" Watch "post complex objects to iframe" New topic

post complex objects to iframe

Ilya Basin

Joined: Aug 15, 2011
Posts: 3
Hi. There's a GWT form with editable GXT grid. I need to display a JSP page based on the form data in a separate IFRAME.
I want to encode/decode the form data by means of GWT, and I want to send this data directly to the JSP page without caching it on server.

Here's the code to post the data to iframe:

to get encoded string:

to deserialize

  • There's no documented way to create RPCRequest on client. You have to write service class and service method name to the SerializationStreamWriter, and this may fail in newer GWT versions
  • Instead of RPC.decodeRequest(), I could use ServerSerializationStreamReader.readObject(), but it's marked "For internal use only", so it's as bad as previous
  • GWT claims to support classes that implement both IsSerializable and Serializable, but to decode the latter, you need an instance of StandardSerializationPolicy. It can only be obtained from the instance of RemoteServiceServlet. It's all too complex.

    I agree. Here's the link:
    subject: post complex objects to iframe
    It's not a secret anymore!