private Measure renderSelectOne(FacesContext facesContext, UIToolBar toolBar, AbstractUICommandBase command,
TobagoResponseWriter writer, Measure width) throws IOException {
final List<SelectItem> items;
UIMenuSelectOne radio = (UIMenuSelectOne) command.getFacet(Facets.RADIO);
if (radio == null) {
items = RenderUtils.getSelectItems(command);
radio = CreateComponentUtils.createUIMenuSelectOneFacet(facesContext, command);
radio.setId(facesContext.getViewRoot().createUniqueId());
} else {
items = RenderUtils.getSelectItems(radio);
}
if (radio != null) {
writer.startElement(HtmlElements.SPAN, radio);
writer.writeClassAttribute(Classes.createWorkaround("toolBar", "selectOne", null));
Object value = radio.getValue();
String currentValue = "";
boolean markFirst = !ComponentUtils.hasSelectedValue(items, value);
String radioId = radio.getClientId(facesContext);
for (SelectItem item : items) {
final String labelText = item.getLabel();
if (labelText != null) {
command.getAttributes().put(Attributes.LABEL, labelText);
} else {