Google Groups Home
Help | Sign in
How to use RPC serialization with in HTML page?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Rohit Ghatol  
View profile
 More options Nov 14 2007, 7:19 am
From: Rohit Ghatol <rohitsgha...@gmail.com>
Date: Wed, 14 Nov 2007 12:19:30 -0000
Local: Wed, Nov 14 2007 7:19 am
Subject: How to use RPC serialization with in HTML page?
Hi,
My question will sound simple when you read through the scenario
below-

The scenario is targeted towards JSP based application using GWT. What
I wish to do is convert a Java bean (1.4 compatible and serailizable)
into json representation using RPC serialization and write it in JSP
page inside a div with id "data".
In my GWT client side code, I would read the contents of div with id
"data" and deserialize the JSON representation to java object.

The reason I want to do this is my GWT application only requires data
at load time, and I do not want it to go and fetch it from server
using RPC service request, as this would involve 1. loading of page 2.
RPC request and async response.

How do I go about doing this? I want to use this as a standard in many
of my GWT applications which need a java bean as its initial data.

regards,
Rohit


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Blazejewicz  
View profile
 More options Nov 14 2007, 7:39 am
From: Peter Blazejewicz <peter.blazejew...@gmail.com>
Date: Wed, 14 Nov 2007 04:39:40 -0800
Local: Wed, Nov 14 2007 7:39 am
Subject: Re: How to use RPC serialization with in HTML page?
hi,
please use "search" feature, it works,
e.g. today thread:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
linking to few days back thread,
regards,
Peter

On Nov 14, 1:19 pm, Rohit Ghatol <rohitsgha...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Blazejewicz  
View profile
 More options Nov 14 2007, 7:42 am
From: Peter Blazejewicz <peter.blazejew...@gmail.com>
Date: Wed, 14 Nov 2007 04:42:14 -0800
Local: Wed, Nov 14 2007 7:42 am
Subject: Re: How to use RPC serialization with in HTML page?
also:
including your data as plain text within divs is not recommended,
include it as javascript code (it will be evaluated by browser),
this will expose you more solutions how to work with such data,

regards,
Peter

On Nov 14, 1:39 pm, Peter Blazejewicz <peter.blazejew...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miguel Méndez  
View profile
 More options Nov 14 2007, 12:18 pm
From: "Miguel Méndez" <mmen...@google.com>
Date: Wed, 14 Nov 2007 12:18:29 -0500
Local: Wed, Nov 14 2007 12:18 pm
Subject: Re: How to use RPC serialization with in HTML page?

In the 1.5 release we are adding a SerializationStreamFactory interface to
the client side RPC proxy.  This will allow you to get a
SerializationStreamReader which will be able to deserialize the pre-recorded
RPC response.

On Nov 14, 2007 7:42 AM, Peter Blazejewicz <peter.blazejew...@gmail.com>
wrote:

--
Miguel

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Blazejewicz  
View profile
 More options Nov 14 2007, 5:55 pm
From: Peter Blazejewicz <peter.blazejew...@gmail.com>
Date: Wed, 14 Nov 2007 14:55:23 -0800
Local: Wed, Nov 14 2007 5:55 pm
Subject: Re: How to use RPC serialization with in HTML page?
hi Miguel,
> In the 1.5 release we are adding a SerializationStreamFactory interface to
> the client side RPC proxy.  This will allow you to get a
> SerializationStreamReader which will be able to deserialize the pre-recorded
> RPC response.

that's sounds really, really good! thanks for listening :D

regards,
Peter


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miguel Méndez  
View profile
 More options Nov 15 2007, 9:27 am
From: "Miguel Méndez" <mmen...@google.com>
Date: Thu, 15 Nov 2007 09:27:38 -0500
Local: Thurs, Nov 15 2007 9:27 am
Subject: Re: How to use RPC serialization with in HTML page?

np

On Nov 14, 2007 5:55 PM, Peter Blazejewicz <peter.blazejew...@gmail.com>
wrote:

--
Miguel

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google