I'm having problem with AutoCompleteTextField. I saw the example in http://www.avoka.com/click-examples/ajax/auto-complete.htm but it didn't work. AutoCompleteTextField postCodeField = new AutoCompleteTextField("postCode") { public List getAutoCompleteList(String criteria) { return getPostCodeService().getPostCodeLocations(criteria); } }; postCodeField.setSize(40);
I implemented a method that receives the String criteria and returns a list. I didn't understand when the object AutoCompleteTextField calls the method getAutoCompleteList and the String criteria is the string that I digited??? The problem is, the list of suggest don't appear... And when I digit any caracter the method getAutoCompleteList isn't called. Someone can help me?
