• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

post complex objects to iframe

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


Problems:
  • 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.

  •  
    Does this tiny ad smell okay to you?
    Enterprise-grade Excel API for Java
    https://products.aspose.com/cells/java
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!