public class ListEmployeesHandler extends AbstractAjaxHandler {
private MemoryRepository store;
public AjaxResponse listEmployees(AjaxSubmitEvent event) {
EmployeesListForm form = (EmployeesListForm) event.getCommandObject();
Map model = event.getModel();
IOffice office = form.getOffice();
Collection<IEmployee> employees = (Collection) model.get("employees");
// Create the simple text message:
SimpleText message = new SimpleText(new StringBuilder("Selected office: ").append(office.getName()).toString());
// Create an ajax action for setting the message and hi: