How TO use the AutoComplete to returning objects from a database?
Ex:
public Person getPerson() {
return person;
}
public void setPerson(Person person) {
this.person = person;
}
public List<Person> complete(String query) {
List<Person> results = dao.query("from Person where name like '"+query+"%'");
return results;
}
The AutoComplete use o toString() do Object?
AutoComplete with Entities
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Supporting entities is not currently supported for now. But it'll be added in 0.9.0. Stay tuned for that feature.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 42 guests