if (isComponentRichMessage(component)) {
AbstractMessage richMessage = (AbstractMessage) component;
escape = richMessage.isEscape();
}
if (isComponentRichMessages(component)) {
AbstractMessages richMessages = (AbstractMessages) component;
escape = richMessages.isEscape();
}
ResponseWriter responseWriter = facesContext.getResponseWriter();
// Message id
responseWriter.writeAttribute("id", component.getClientId() + ':' + message.getSourceId(), null);
// tooltip