throws IOException {
if (AjaxUtil.getSkipExtraRenderingOnPortletsAjax(context))
return;
Components.generateIdIfNotSpecified(component);
TagCloud cloud = (TagCloud) component;
if ((cloud.getItemUrl() != null && cloud.getRender() != null))
throw new FacesException("Both attributes 'itemUrl' and 'renderer' cannot be set in the <o:tagCloud> component at the same time");
String clientId = cloud.getClientId(context);
ResponseWriter writer = context.getResponseWriter();
Rendering.writeStandardEvents(writer, cloud);
writer.startElement("div", cloud);
writeAttribute(writer, "id", clientId);
writeAttribute(writer, "class", getTagCloudStyleClass(context, cloud));
writeAttribute(writer, "style", cloud.getStyle());
encodeScripts(context, cloud);
encodeIdField(context, cloud);
encodeLayout(context, cloud);
}