I'm using the following snippet of code from ClipboardBean to display a message in the page after an action:
FacesContext context = FacesContext.getCurrentInstance();
if (Application.getClientConfig(context).isClipboardStatusVisible())
{
String pattern = Application.getMessage(context, "nodes_added");
String msg = MessageFormat.format(pattern, items.size());
FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, msg, msg);
context.addMessage(null, facesMsg);
}
The message displays but it appears in red and with the message:Please correct the errors below then click OK.
* Copied nodes.
No errors appear in the log and there are no other error messages. Is there an error? Why is the message appearing in red?