String detail = null;
String title = null;
UIRichMessage uiMsg = null;
if(!(component instanceof UIRichMessage)){
return;
}
uiMsg = (UIRichMessage)component;
boolean isTooltip = getUtils().isBooleanAttribute(uiMsg, "tooltip");
boolean showSummary = uiMsg.isShowSummary();
boolean showDetail = uiMsg.isShowDetail();
if(facesMsg != null){
summary = (null != (summary = facesMsg.getSummary())) ? summary : "";
detail = (null != (detail = facesMsg.getDetail())) ? detail : "";
}
String classes = labelClass == null ? "rich-message-label" : "rich-message-label " + labelClass;
writer.startElement(HTML.SPAN_ELEM, uiMsg);
getUtils().writeAttribute(writer, HTML.class_ATTRIBUTE,classes);
getUtils().writeAttribute(writer, HTML.style_ATTRIBUTE, labelStyle);
if(facesMsg != null){
if(isTooltip){
title = (String) uiMsg.getAttributes().get("title");
if(title != null){
getUtils().writeAttribute(writer, HTML.title_ATTRIBUTE, title);
}else{
getUtils().writeAttribute(writer, HTML.title_ATTRIBUTE, summary);
}