Hi all,
i'd like to use the autocompleter as textfield to load a list of database
objects when typing some characters. Everything's working fine (action
roundtrips after 3 characters) except refreshing the list of the autocompleter.
The list is still empty after setting the property in the Struts action class.
I guess i need some kind of javascript event to refresh the list - but i
haven't found the correct property yet. Can anybody help?
############ JSP
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<s:url var="stringingAutocomplete"
action="StringingAction_searchTennisStrings"/>
<sj:autocompleter
id="tennisString"
name="tennisString"
href="%{stringingAutocomplete}"
list="%{stringList}"
listValue="name"
listKey="id"
loadMinimumCount="3"
reloadTopics="true"
/>
############ Action class
public String searchTennisStrings() throws Exception {
// database call to look for tennis strings
this.stringList = stringingService.findTennisStringsByName(this.term);
return SUCCESS;
}
Thanks
André