@Override
public void doEncodeEnd(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException {
if (!(component instanceof AbstractRating)) {
return;
}
AbstractRating rating = (AbstractRating) component;
writer.startElement(HtmlConstants.DIV_ELEM, null);
String clientId = component.getClientId(context);
writer.writeAttribute(HtmlConstants.ID_ATTRIBUTE, clientId, HtmlConstants.ID_ATTRIBUTE);
writer.writeAttribute(HtmlConstants.CLASS_ATTRIBUTE,