//String last = u.getProperty(UserConstants.LASTNAME, ureq.getLocale());
receiver.addEntry(login, login +" "+login);
}
}};
Controller c = new AutoCompleterController(ureq, getWindowControl(), provider, "-no user found-", false);
// for demo only, normally use in parent controller
c.addControllerListener(new ControllerEventListener() {
public void dispatchEvent(UserRequest ureq, Controller source, Event event) {
EntriesChosenEvent ece = (EntriesChosenEvent) event;
String sel = ece.getEntries().toString();
getWindowControl().setInfo("selected entrie(s):"+sel);