PDA

View Full Version : Populate data in Grid by real server pushes



rookie
20 Mar 2009, 12:01 PM
Hi guys

I have a Grid. The data is populated over GWT-RPC with a BasePagingLoader. Now I would like to push new data from the server to the client so that the Grid is updated in realtime (no polling).

Any ideas? What is the simplest way to do this?

Many thanks and cheers
Rookie

Shawn.in.Tokyo
21 Mar 2009, 5:02 PM
For real server pushed I use Comet. Well, the dwr implementation at least.

It's not GWT-RPC, and I don't know if it's the best way but I am comfortable using dwr and the way I can secure it with acegi (though I haven't written that part up).

http://things-that-i-noticed.blogspot.com/

If you try the example.war, you could try to configure dwr to push whatever object contains your data. For that you'd see http://directwebremoting.org/dwr/server/dwrxml/converters

Shawn