Author: ndkhoiits
Date: 2010-10-08 05:01:37 -0400 (Fri, 08 Oct 2010)
New Revision: 4601
Modified:
portal/branches/branch-GTNPORTAL-1537/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIPermissionForm.java
Log:
GTNPORTAL-1500 Reload selected category and application on UIApplicationOrganizer after
change application permission
Modified:
portal/branches/branch-GTNPORTAL-1537/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIPermissionForm.java
===================================================================
---
portal/branches/branch-GTNPORTAL-1537/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIPermissionForm.java 2010-10-08
09:00:37 UTC (rev 4600)
+++
portal/branches/branch-GTNPORTAL-1537/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIPermissionForm.java 2010-10-08
09:01:37 UTC (rev 4601)
@@ -20,6 +20,7 @@
package org.exoplatform.applicationregistry.webui.component;
import org.exoplatform.application.registry.Application;
+import org.exoplatform.application.registry.ApplicationCategory;
import org.exoplatform.application.registry.ApplicationRegistryService;
import org.exoplatform.web.application.ApplicationMessage;
import org.exoplatform.webui.application.WebuiRequestContext;
@@ -95,7 +96,9 @@
service.update(application_);
Application selectedApplication = getApplication();
UIApplicationOrganizer uiApplicationOrganizer =
getAncestorOfType(UIApplicationOrganizer.class);
+ ApplicationCategory selectedCategory =
uiApplicationOrganizer.getSelectedCategory();
uiApplicationOrganizer.reload();
+ uiApplicationOrganizer.setSelectedCategory(selectedCategory);
uiApplicationOrganizer.setSelectedApplication(selectedApplication);
}