Using a JAXFront Document:
Codeblock |
---|
theme | Eclipse |
---|
language | java |
---|
linenumbers | true |
---|
|
AJAXHTMLResponse ajax = AJAXHTMLResponse.getFromDom(dom);
ajax.addAction(new StatusBarMessageAction((IUser) dom.getUser(), "doHandle", "error", StatusBarMessageAction.NOTIFY_CLASS_ERROR, null, true, true, false));
|
Using a request:
Codeblock |
---|
theme | Eclipse |
---|
language | java |
---|
linenumbers | true |
---|
|
AJAXResponse ajaxResponse = GeneralTool.getSession(request).getAJAXResponse(request.hashCode());
if (ajaxResponse != null) {
ajaxResponse.addAction(new StatusBarMessageAction(user, domHandler.getErrorCause().getMessage(), "error", NOTIFY_CLASS_ERROR, null, true, true, false));
} |
Constructor:
Codeblock |
---|
theme | Eclipse |
---|
language | java |
---|
linenumbers | true |
---|
|
public StatusBarMessageAction(IUser user, String message, String icon, String messageClass, String title, boolean isNofify, boolean automaticHide, boolean needsReadConfirmation) |