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:
ReplaceContentAction setMessageAction = new ReplaceContentAction("message", message);
// Create an highlighting effect action for the appearing message:
Effect highlightAction = new Effect("Highlight", "message");
highlightAction.addOption("duration", 0.5);