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