public class MenuBarRenderer extends LayoutComponentRendererBase {
@Override
public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
UIMenuBar menuBar = (UIMenuBar) component;
TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
writer.startElement(HtmlElements.OL, menuBar);
writer.writeIdAttribute(menuBar.getClientId(facesContext));
writer.writeClassAttribute(Classes.create(menuBar));
HtmlRendererUtils.writeDataAttributes(facesContext, writer, menuBar);
Style style = new Style(facesContext, menuBar);
writer.writeStyleAttribute(style);
}