Author: hoang_to
Date: 2010-04-27 03:27:14 -0400 (Tue, 27 Apr 2010)
New Revision: 2805
Modified:
portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIGroupMembershipSelector.java
Log:
GTNPORTAL-1024: Don't show sub-level in Permission Selector form
Modified:
portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIGroupMembershipSelector.java
===================================================================
---
portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIGroupMembershipSelector.java 2010-04-27
07:22:12 UTC (rev 2804)
+++
portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIGroupMembershipSelector.java 2010-04-27
07:27:14 UTC (rev 2805)
@@ -79,10 +79,12 @@
public void processRender(WebuiRequestContext context) throws Exception
{
OrganizationService service = getApplicationComponent(OrganizationService.class);
- Collection<?> sibblingsGroup = service.getGroupHandler().findGroups(null);
UITree tree = getChild(UITree.class);
- if (tree != null)
+ if (tree != null && tree.getSibbling() == null)
+ {
+ Collection<?> sibblingsGroup =
service.getGroupHandler().findGroups(null);
tree.setSibbling((List)sibblingsGroup);
+ }
Collection<?> collection =
service.getMembershipTypeHandler().findMembershipTypes();
listMemberhip = new ArrayList<String>(5);
@@ -193,14 +195,6 @@
UIPopupWindow uiPopup = uiSelector.getParent();
uiPopup.setShow(true);
event.getRequestContext().addUIComponentToUpdateByAjax(uiPopup);//TODO: Update
relevant tab panes
- /*
- UIForm uiForm = event.getSource().getAncestorOfType(UIForm.class) ;
- if(uiForm != null) {
- event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
- }else{
- event.getRequestContext().addUIComponentToUpdateByAjax(uiPopup);
- }
- */
}
}
Show replies by date