If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

LightStreamer with GWTQuery.

I was wondering if anyone has come across and problem using light streamer in GWT when also inheriting the GWTQuery package? Simply inheriting the gwtQuery package has the end effect of causing a subscription to become null. Remove the gwtQuery inherits and the problem goes away.

Yes, you are right, I have tried to add the gwtQuery to our GWT StockList Demo and indeed, it stopped working.
But with a couple of tweaks it resumes to work again, in detail the steps that I followed are these:

1. Change the style for the Lighstreamer JavaScript library in use. You can build a suitable lightstreamer.js file from the online generator.
In that case be sure to include the LightstreamerClient, Subscription, and any other class used in your app and to flag the "Use namespaced globals" option.

2. In the source code of the Demo, every time a object of the Lightstreamer library should be instantiated add the prefix "$wnd.Lightstreamer.". For example:

I have taken the steps you have outlined and I am getting the same error.

I used the Online Generator with the LightStreamerClient, Subscription, and Use namedspaced globals options. (we are not using any other classes)

I copied the output of the generator and replaced the lightstreamer.js file contents with the generated output.

I changed all references to
->

I cleaned all the GWT output files, recompiled, and still received the same error. I then removed the <inherits name='com.google.gwt.query.Query'/> from the xml and recompiled/ran, and started noticing the call to new $wnd.Lightstreamer.LightstreamerClient(); was returning null.

Is there a change to the lightstreamer_globals.js that also needed to happen?

Only one file needs to be included and the filename where you saved the generated library should match with the <script> command in HTML page.
So, if you have saved the lib in "lightstreamer/lightstreamer.js", you should change html page in: