AJAXHTMLResponse ajax = AJAXHTMLResponse.getFromDom(dom);
ajax.addAction(new StatusBarMessageAction((IUser) dom.getUser(), "doHandle", "error", StatusBarMessageAction.NOTIFY_CLASS_ERROR, null, true, true, false));
Constructor:
public StatusBarMessageAction(IUser user, String message, String icon, String messageClass, String title, boolean isNofify, boolean automaticHide, boolean needsReadConfirmation)