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()); }