UIFormCheckBoxInput<Boolean> uiPublicMode = new UIFormCheckBoxInput<Boolean>("publicMode", null, false);
addChild(uiPublicMode);
UIFormGrid uiGrid = addChild(UIFormGrid.class, null, "PermissionGrid");
uiGrid.setLabel("UIListPermissionSelector");
uiGrid.configure("expression", new String[]{"groupId", "membership"}, new String[]{"Delete"});
UIFormPageIterator uiIterator = (UIFormPageIterator)uiGrid.getUIPageIterator();
uiIterator.setPageList(new SerializablePageList<Permission>(Permission.class, Collections.<Permission>emptyList(), 10));
addChild(uiIterator);
uiIterator.setRendered(false);
UIFormPopupWindow uiPopup = addChild(UIFormPopupWindow.class, null, null);
uiPopup.setWindowSize(540, 0);
UIGroupMembershipSelector uiMembershipSelector = createUIComponent(UIGroupMembershipSelector.class, null, null);
uiMembershipSelector.setId("ListPermissionSelector");