public static String[] SELECT_ACTIONS = {"SelectPortal"};
public UIPortalSelector() throws Exception
{
setName("UIChangePortal");
UIGrid uiGrid = addChild(UIGrid.class, "PortalSelector", null);
uiGrid.configure("name", BEAN_FEILD, SELECT_ACTIONS);
uiGrid.getUIPageIterator().setId("ChangePortalPageInterator");
addChild(uiGrid.getUIPageIterator());
uiGrid.getUIPageIterator().setRendered(false);
DataStorage dataService = getApplicationComponent(DataStorage.class);
Query<PortalData> query = new Query<PortalData>(null, null, null, null, PortalData.class);
LazyPageList<PortalData> pageList = dataService.find(query);
pageList.setPageSize(10);
pageList = extractPermissedPortal(pageList);
uiGrid.getUIPageIterator().setPageList(pageList);
}