--
JoaoQuintas - 23 Aug 2010
Error Messages
An Error Message is a XVW component that's used to alert the user when something is wrong or not coherent.
ALERT
POPUP_MESSAGE
MESSAGE
XML Definition
Not applicable BUT the tag below needs to be present in the viewer or the messages won't be shown (not needed for edit viewer).
<xvw:errorMessages/>
Java Bean Definition
An Error Message is declared as following:
XUIRequestContext.getCurrentContext().addMessage(STRING_CLIENT_ID,
new XUIMessage(INT_MESSAGE_TYPE, INT_MESSAGE_SEVERITY,
STRING_MESSAGE_TITLE, STRING_MESSAGE_BODY));
Note:
STRING_CLIENT_ID = Any identifier for the XUI Message
INT_MESSAGE_TYPE = XUIMessage.TYPE_ALERT or XUIMessage.TYPE_MESSAGE or XUIMessage.TYPE_POPUP_MESSAGE
INT_MESSAGE_SEVERITY = XUIMessage.SEVERITY_INFO or XUIMessage.SEVERITY_CRITICAL or XUIMessage.SEVERITY_ERROR or XUIMessage.SEVERITY_WARNING
STRING_MESSAGE_TITLE = The message title
STRING_MESSAGE_BODY = The message body
Component from which the Error Messages Extends
Components that Extend Error Messages
Error Messages Properties
Possible Child Components: