public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
String clientId = component.getClientId(facesContext);
TobagoResponseWriter writer = (TobagoResponseWriter) facesContext.getResponseWriter();
writer.startElement(HtmlConstants.DIV, component);
writer.writeComponentClass();
writer.writeIdAttribute(clientId);
if (TobagoConfig.getInstance(facesContext).isAjaxEnabled()) {
HtmlRendererUtil.writeJavascript(writer, "Tobago.addAjaxComponent(\"" + clientId + "\")");
Integer frequency = null;
UIComponent facetReload = component.getFacet(FACET_RELOAD);