// Anchor rendering currently only possible for messages that
// contain a label, but we could use summary text in future
if (msg instanceof LabeledFacesMessage)
{
LabeledFacesMessage labeledMsg = (LabeledFacesMessage)msg;
String anchor = MessageUtils.getAnchor(componentId);
if (anchor != null)
{
writer.startElement(XhtmlConstants.LINK_ELEMENT, null);
renderStyleClass(context, arc, SkinSelectors.LINK_STYLE_CLASS);
writer.writeAttribute(XhtmlConstants.HREF_ATTRIBUTE, "#" + anchor, null);
writer.write(labeledMsg.getLabel().toString());
writer.endElement(XhtmlConstants.LINK_ELEMENT);
}
}
}