selectMany.getAttributes().put("disabledClass", "disabledClass");
selectMany.getAttributes().put("styleClass", "styleClass");
selectMany.getAttributes().put("tabindex", new Integer(5));
selectMany.getAttributes().put("title", "title");
UISelectItems uiSelectItems = new UISelectItems();
selectMany.setValue(null);
selectMany.setId("myCheckboxlist");
SelectItem item1 = new SelectItem("Red", "Red", null);
item1.setDisabled(true);
SelectItem item2 = new SelectItem("Blue", "Blue", null);
SelectItem item3 = new SelectItem("Green", "Green", null);
SelectItem item4 = new SelectItem("Yellow", "Yellow", null);
SelectItem[] itemsArray = {item3, item4};
SelectItemGroup itemGroup = new SelectItemGroup("group", null, true,
itemsArray);
SelectItem[] selectItems = {item1, item2, itemGroup};
Object selectedValues[] = null;
uiSelectItems.setValue(selectItems);
selectMany.getChildren().add(uiSelectItems);
root.getChildren().add(selectMany);
SelectManyCheckboxListRenderer selectManyCheckboxListRenderer =
new SelectManyCheckboxListRenderer();