Thanks Bob!!!
I will try explain better below:
I'm doing basically what I saw in the example.
In the method #onRender of my click page, I'm creating a AutoCompleteTextField
object the same way of the example:
AutoCompleteTextField postCodeField = new AutoCompleteTextField("substance") {
public List getAutoCompleteList(String criteria) {
System.out.println("----- TEST -----");
return filemanager.bdconnections.SubstanciaDB.
getSubstanciaByName(criteria);
}
};
postCodeField.setSize(40);
I just change the method that return a list. Like I'm using the hibernate, I'm
calling the method #getSubstanciaByName(String name):
public List getSubstanciaByName(String name) {
manager = currentSession();
try {
Query query;
String sql=" select subs from Substancia subs ";
if(name.length()>0)
sql=sql+ "where subs.SUBDES like '%"+name+"%'";
query = manager.createQuery(sql);
return query.list();
} finally {
close();
}
}
And when I exute the code the server don't show me the String ----- TEST -----,
then the server didn't call the method #getAutoCompleteList...
any idea??