encodeScript(context, tagCloud);
}
protected void encodeMarkup(FacesContext context, TagCloud tagCloud) throws IOException {
ResponseWriter writer = context.getResponseWriter();
TagCloudModel model = tagCloud.getModel();
String styleClass = tagCloud.getStyleClass();
String style = tagCloud.getStyle();
styleClass = styleClass == null ? TagCloud.STYLE_CLASS : TagCloud.STYLE_CLASS + " " + styleClass;
writer.startElement("div", tagCloud);
writer.writeAttribute("id", tagCloud.getClientId(context), "id");
writer.writeAttribute("class", styleClass, "styleClass");
if(style != null) writer.writeAttribute("style", style, "style");
writer.startElement("ul", null);
for(TagCloudItem item : model.getTags()) {
writer.startElement("li", null);
writer.writeAttribute("class", "ui-tagcloud-strength-" + item.getStrength(), null);
writer.startElement("a", null);
writer.writeAttribute("href", getResourceURL(context, item.getUrl()), null);