public void execute(Event<UIBreadcumbs> event) throws Exception { UIBreadcumbs uiBreadcumbs = event.getSource(); UIGroupMemberSelector uiGroupMemberSelector = uiBreadcumbs.getParent(); String objectId = event.getRequestContext().getRequestParameter(OBJECTID); uiBreadcumbs.setSelectPath(objectId); String selectGroupId = uiBreadcumbs.getSelectLocalPath().getId(); uiGroupMemberSelector.changeGroup(selectGroupId); if (uiGroupMemberSelector.isUsePopup) { UIPopupWindow uiPopup = uiBreadcumbs.getAncestorOfType(UIPopupWindow.class); uiPopup.setShow(true); uiPopup.setShowMask(true); } event.getRequestContext().addUIComponentToUpdateByAjax(uiGroupMemberSelector); }
public void execute(Event<UIBreadcumbs> event) throws Exception { UIBreadcumbs uiBreadcumbs = event.getSource(); UISocialGroupSelector uiSelector = uiBreadcumbs.getParent(); String objectId = event.getRequestContext().getRequestParameter(OBJECTID); uiBreadcumbs.setSelectPath(objectId); String selectGroupId = uiBreadcumbs.getSelectLocalPath().getId(); uiSelector.changeGroup(selectGroupId); UIPopupWindow uiPopup = uiSelector.getParent(); uiPopup.setShow(true); UIForm uiForm = event.getSource().getAncestorOfType(UIForm.class); if (uiForm != null) { event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent()); } else { event.getRequestContext().addUIComponentToUpdateByAjax(uiPopup); } }