Hi, all. I need to integrate light streamer with smart gwt. I tried to show existing static page in gwt with
and it worked, but i don't think this is the best approach.
I need to integrate the following code in smart gwt :
This is the static page, that light streamer updates and i just set it in htmlPane.
In my first approach i just display the page, but i can't acess the data that is updated.
I tried to use htmlPane.getChilderen() but no success. Coulde some one tell me how to translate the above page in smart gwt code, so i can access the "message" and "timestamp" values that come from light streamer.
Regards.
Code:
// this page is hosted in the light streamer server htmlPane.setContentsURL("http://localhost:8888/demos/HelloWorld/");
I need to integrate the following code in smart gwt :
Code:
<html> <head> <title>Hello World with Lightstreamer</title> <script language="JavaScript" src="LS/lscommons.js"></script> <script language="JavaScript" src="LS/lspushpage.js"></script> </head> <body> <div source="lightstreamer" table="hellotable" item="greetings" field="message">loading...</div> <div source="lightstreamer" table="hellotable" item="greetings" field="timestamp">loading...</div> <script> var page = new PushPage(); page.onEngineCreation = function(engine) { engine.connection.setAdapterName("HELLOWORLD"); engine.changeStatus("STREAMING"); } page.bind(); page.createEngine("HelloWorldApp", "LS", "SHARE_SESSION"); var pushtable = new OverwriteTable(null, null, "MERGE"); page.addTable(pushtable, "hellotable"); </script> </body> </html>
In my first approach i just display the page, but i can't acess the data that is updated.
I tried to use htmlPane.getChilderen() but no success. Coulde some one tell me how to translate the above page in smart gwt code, so i can access the "message" and "timestamp" values that come from light streamer.
Regards.
Comment