public class MenuBarRenderer extends LayoutComponentRendererBase {
@Override
public void encodeBegin(final FacesContext facesContext, final UIComponent component) throws IOException {
final UIMenuBar menuBar = (UIMenuBar) component;
final 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);
final Style style = new Style(facesContext, menuBar);
writer.writeStyleAttribute(style);
}