NedStarkOfWinterfell
NedStarkOfWinterfell

Reputation: 5153

How to use GWTQuery-UI

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

Upvotes: 1

Views: 538

Answers (1)

jdramaix
jdramaix

Reputation: 1104

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

Upvotes: 1

Related Questions