Using a JAXFront Document:
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
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 | ||||||
---|---|---|---|---|---|---|
| ||||||
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 | ||||||
---|---|---|---|---|---|---|
| ||||||
public StatusBarMessageAction(IUser user, String message, String icon, String messageClass, String title, boolean isNofify, boolean automaticHide, boolean needsReadConfirmation) |