UIPageForm uiPageForm = uiMaskWS.createUIComponent(UIPageForm.class, "UIBrowserPageForm", "UIPageForm");
uiPageForm.buildForm(null);
uiMaskWS.setUIComponent(uiPageForm);
uiMaskWS.setShow(true);
UIFormSelectBox slcOwnerType = uiPageForm.getUIFormSelectBox(UIPageForm.OWNER_TYPE);
List<SelectItemOption<String>> types = slcOwnerType.getOptions();
for (int i = 0; i < types.size(); i++) {
if (PortalConfig.USER_TYPE.equals(types.get(i).getValue())) {
types.remove(types.get(i));
break;
}
}
slcOwnerType.setOptions(types);
Event<UIComponent> slcEvent = uiPageForm.createEvent("ChangeOwnerType", Phase.DECODE, event.getRequestContext());
slcEvent.broadcast();
prContext.addUIComponentToUpdateByAjax(uiMaskWS);
}