writer.startJavascript();
writer.write("Tobago.ensureStyleFiles(");
writer.write(ResourceManagerUtils.getStylesAsJSArray(facesContext, styles));
writer.write(");");
writer.endJavascript();
}
public static String getTitleFromTipAndMessages(final FacesContext facesContext, final UIComponent component) {
final String messages = ComponentUtils.getFacesMessageAsString(facesContext, component);
return HtmlRendererUtils.addTip(messages, component.getAttributes().get(Attributes.TIP));