public class UIGroupSelector extends UIContainer {
private Group selectedGroup;
public UIGroupSelector() throws Exception {
UIBreadcumbs uiBreadcumbs = addChild(UIBreadcumbs.class, "BreadcumbGroupSelector", "BreadcumbGroupSelector");
UITree tree = addChild(UITree.class, "UITreeGroupSelector", "TreeGroupSelector");
OrganizationService service = getApplicationComponent(OrganizationService.class);
Collection sibblingsGroup = service.getGroupHandler().findGroups(null);
tree.setSibbling((List) sibblingsGroup);
tree.setIcon("GroupAdminIcon");
tree.setSelectedIcon("PortalIcon");
tree.setBeanIdField("id");
// tree.setBeanLabelField("groupName");
tree.setBeanLabelField("label");
tree.setEscapeHTML(true);
uiBreadcumbs.setBreadcumbsStyle("UIExplorerHistoryPath");
}