AutoComplete with Entities

UI Components for JSF
Post Reply
marciusbrandao
Posts: 1
Joined: 23 Apr 2009, 02:36

23 Apr 2009, 02:47

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?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

23 Apr 2009, 10:36

Supporting entities is not currently supported for now. But it'll be added in 0.9.0. Stay tuned for that feature.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 42 guests