}
@Override
public void encodeMarkupBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException {
NodeMenuNav nodeMenuNav = (NodeMenuNav) uiComponent;
ResponseWriter responseWriter = facesContext.getResponseWriter();
String clientId = uiComponent.getClientId(facesContext);
// start yui3-menu div
responseWriter.startElement(StringPool.DIV, uiComponent);
responseWriter.writeAttribute(StringPool.ID, clientId, StringPool.ID);
responseWriter.writeAttribute(StringPool.CLASS, "yui3-menu yui3-menu-horizontal yui3-splitbuttonnav",
StringPool.CLASS);
// start yui3-menu-content div
responseWriter.startElement(StringPool.DIV, uiComponent);
responseWriter.writeAttribute(StringPool.CLASS, "yui3-menu-content", StringPool.CLASS);
responseWriter.startElement(StringPool.UL, uiComponent);
responseWriter.startElement(StringPool.LI, uiComponent);
// Start the span containing the btn-group
responseWriter.startElement(StringPool.SPAN, uiComponent);
responseWriter.writeAttribute(StringPool.CLASS, "yui3-menu-label btn-group", StringPool.CLASS);
// ResponseWriter blocks the text value and blocks writing of URIAttributes, if necessary
boolean disabled = nodeMenuNav.isDisabled();
String styleClass = nodeMenuNav.getStyleClass();
DelegationResponseWriter delegationResponseWriter = new NodeMenuNavResponseWriter(responseWriter, disabled,
uiComponent.getClientId(facesContext), styleClass);
//J-
// We have now written out something like this: