Javascript integration is not working


I have been trying to make the javascript integration work in vaadin but it is not happening.
Its a simple example given in “Packt.Vaadin.7.UI.Design.By.Example.Beginners.Guide.Jul.2013.pdf”.
Please see the screenshots.

We need more Information… What “is not happening”? Are there any Javascript Exceptions? Serverside exceptions?

Ok i think the problem is, that you missed to use

this.onStateChange = function() {


in your spinner.js Javascript.

Take a look here:

Thanks a lot for your reply. Yes, I forgot to specify the onstate change function. Its working now.