if (component instanceof HtmlMessages
&& ((HtmlMessages) component).getForceSpan())
{
ResponseWriter writer = facesContext.getResponseWriter();
HtmlMessages htmlMessages = (HtmlMessages) component;
writer.startElement(HTML.SPAN_ELEM, null);
writer.writeAttribute(HTML.ID_ATTR,component.getClientId(facesContext),null);
if(htmlMessages.getStyleClass()!=null)
writer.writeAttribute(HTML.CLASS_ATTR,htmlMessages.getStyleClass(),null);
if(htmlMessages.getStyle()!=null)
writer.writeAttribute(HTML.STYLE_ATTR,htmlMessages.getStyle(),null);
writer.endElement(HTML.SPAN_ELEM);
}
}