There are examples in the book only for hard coded Array values.
I have StateDao class which have method getStateList() which provides List<String>.
How can I use data from database ?
Thanks
AR
But essentially your callback will use Ajax to make a request back to the server. The response should contain the data in any of the JSON formats described in the documentation.
Once the request is on the server, the autocompleter could care less what the server-side code does, so your java code can call your DAO in any manner that you see fit.