1

I am trying to unserstand how GWTQuery works, for that I am trying out a simple demo with the slider. As per the documentation at Google (the slider tab is on the bottom left), and using the class AbstractSliderDemo from here, which in turn, is implementing the Demo interface defined here, my onModuleLoad simply contains:

Label e = $("#slider").widget();
Query q = new Query();
q.setupDemoElement(e.getElement());

However on page-load, it is throwing a NullPointer exception. Can anybody guide me how to use it. Probably I am missing something here. (I have added both GWTQuery and GWTQuery-UI jar files to the build path, as well as including <inherits name='gwtquery.plugins.Ui' /> in the XML file).

enter image description here

And here is the directory structure of my project:

enter image description here

SexyBeast
  • 7,913
  • 28
  • 108
  • 196

1 Answers1

1

GwtQuery-Ui is just a wrapper on jquery-ui. That means that you need to inject the jquery and jquery-ui javascript file. Check the getting started guide og GwtQuery-ui

jdramaix
  • 1,104
  • 6
  • 9
  • But I added the line `` to my XML file, won't that suffice. I didn't find any statement like you have to include the jQuery and jQuery-UI files as well.. – SexyBeast Jan 30 '13 at 08:19
  • Plus, The Suresh Atta above said that it is working for him, but he didn't add those files... – SexyBeast Jan 30 '13 at 08:23