searchField.setEmptyText("Type search string");
searchField.addListener(new TextFieldListenerAdapter() {
@Override
public void onSpecialKey(Field field, EventObject e) {
if (e.getKey() == EventObject.ENTER) {
SearchUtil su = new SearchUtil(getProjectId(), IndividualsListPortlet.this);
//su.setBusyComponent(searchField); //this does not seem to work
su.setBusyComponent(getTopToolbar());
su.setSearchedValueType(ValueType.Instance);
su.search(searchField.getText());
}
}
});
return searchField;
}