Author: kien_nguyen
Date: 2011-06-27 00:39:53 -0400 (Mon, 27 Jun 2011)
New Revision: 6755
Modified:
portal/branches/branch-GTNPORTAL-1921/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategorySelector.java
Log:
GTNPORTAL-1942 Categories are not alphabetically sorted when adding portlet in category
Modified:
portal/branches/branch-GTNPORTAL-1921/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategorySelector.java
===================================================================
---
portal/branches/branch-GTNPORTAL-1921/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategorySelector.java 2011-06-27
04:22:48 UTC (rev 6754)
+++
portal/branches/branch-GTNPORTAL-1921/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategorySelector.java 2011-06-27
04:39:53 UTC (rev 6755)
@@ -4,6 +4,7 @@
import org.exoplatform.application.registry.Application;
import org.exoplatform.application.registry.ApplicationCategory;
import org.exoplatform.application.registry.ApplicationRegistryService;
+import org.exoplatform.applicationregistry.webui.Util;
import org.exoplatform.commons.utils.SerializablePageList;
import org.exoplatform.commons.serialization.api.annotations.Serialized;
import org.exoplatform.webui.config.annotation.ComponentConfig;
@@ -51,7 +52,7 @@
try
{
ApplicationRegistryService appRegService =
getApplicationComponent(ApplicationRegistryService.class);
- List<ApplicationCategory> categories =
appRegService.getApplicationCategories();
+ List<ApplicationCategory> categories =
appRegService.getApplicationCategories(new Util.CategoryComparator());
categories = categories != null ? categories : new
ArrayList<ApplicationCategory>();
return categories;
}
Show replies by date