On Thu, Dec 24, 2009 at 6:35 AM, Sopasakis Pantelis <[email protected]> wrote:
> Hello,
>  I'm using Restlet 2.0 m3 to build a web service and I'd like to know if
> there is some way to tackle this weird problem:
>
> I want the numbers 1,2,3,4,... to appear on the browser, on every 2
> seconds. (In fact I need to do something more complicated, but If you
> give me some instructions on how to do that it would be great). Usually
> I use objects of type StringRepresentation or OutputRepresentation but I
> have not yet found some way to modify the content of the representation
> once it is returned to the client. Is there some kind of OutputStream I
> could use to manipulate the representations dynamically?

I think you are mistaken for what this technology provides. After a
chunk of data has been transferred to the client, there is no
"chatter" happening between the client and server.

You may be asking about how to write Javascript to update the DOM on
the client side. There are better forums than this one for that. For
instance, GWT provides a lot of nice things for Java developers to
write client-side solutions. But that is just one out of many options.

Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2433285

Reply via email to