uiSelectOne.getAttributes().put("enabledClass", "enabledClass");
uiSelectOne.getAttributes().put("disabledClass", "disabledClass");
uiSelectOne.getAttributes().put("styleClass", "styleClass");
uiSelectOne.getAttributes().put("tabindex", new Integer(5));
uiSelectOne.getAttributes().put("title", "title");
UISelectItems uiSelectItems = new UISelectItems();
uiSelectOne.setId("radioRenderer");
root.getChildren().add(uiSelectOne);
SelectItem item1 = new SelectItem("One", "One", null);
item1.setDisabled(true);
SelectItem item2 = new SelectItem("Two", "Two", null);
SelectItem item3 = new SelectItem("Three", "Three", null);
SelectItem item4 = new SelectItem("Four", "Four", null);
SelectItem item5 = new SelectItem("Five", "Five", null);
SelectItem[] itemsArray = {item4, item5};
SelectItemGroup itemGroup = new SelectItemGroup("group", null, true,
itemsArray);
SelectItem[] items = {item1, item2, item3, itemGroup};
uiSelectItems.setValue(items);
uiSelectItems.setId("items");
uiSelectOne.getChildren().add(uiSelectItems);
UIParameter param = new UIParameter();
param.setName("foo");
param.setValue("foovalue");