public void onEvent(
     Event<UIModeratorManagementForm> event, UIModeratorManagementForm uiForm, String userId)
     throws Exception {
   UIPopupContainer popupContainer = uiForm.getAncestorOfType(UIPopupContainer.class);
   UIViewUserProfile viewUserProfile =
       openPopup(popupContainer, UIViewUserProfile.class, 670, 0);
   viewUserProfile.setUserProfileViewer(uiForm.getUserProfile(userId));
 }
 public void onEvent(
     Event<UIModeratorManagementForm> event, UIModeratorManagementForm uiForm, String userId)
     throws Exception {
   UIPopupContainer popupContainer = uiForm.getAncestorOfType(UIPopupContainer.class);
   UISelectItemForum selectItemForum =
       openPopup(popupContainer, UISelectItemForum.class, 400, 0);
   selectItemForum.initSelectForum(
       uiForm.setListForumIds(), uiForm.getUserProfile().getUserId());
 }
 public void onEvent(
     Event<UIModeratorManagementForm> event, UIModeratorManagementForm uiForm, String userId)
     throws Exception {
   uiForm.editUserProfile =
       uiForm.getForumService().updateUserProfileSetting(uiForm.getUserProfile(userId));
   uiForm.removeChildById("ForumUserProfile");
   uiForm.removeChildById("ForumUserOption");
   uiForm.removeChildById("ForumUserBan");
   uiForm.removeChild(UIPageListTopicByUser.class);
   uiForm.removeChild(UIPageListPostByUser.class);
   uiForm.initUserProfileForm();
   uiForm.isEdit = true;
   UIPopupWindow popupWindow = uiForm.getAncestorOfType(UIPopupWindow.class);
   popupWindow.setWindowSize(950, 540);
   event.getRequestContext().addUIComponentToUpdateByAjax(popupWindow.getParent());
 }