final boolean checked = ComponentUtils.getBooleanAttribute(checkbox, Attributes.VALUE);
final String clientId = checkbox.getClientId(facesContext);
writer.startElement(HtmlElements.SPAN, checkbox);
writer.writeClassAttribute(Classes.createWorkaround("toolBar", "selectBoolean", null));
final CommandMap map = new CommandMap(new Command());
width = renderToolbarButton(facesContext, toolBar, command, writer, checked, width, map, null);
writer.startElement(HtmlElements.INPUT, null);
writer.writeAttribute(HtmlAttributes.TYPE, HtmlInputTypes.HIDDEN, false);
writer.writeNameAttribute(clientId);