Author: hfnukal
Date: 2011-07-07 09:22:44 -0400 (Thu, 07 Jul 2011)
New Revision: 6839
Modified:
epp/portal/branches/EPP_5_1_Branch/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategorySelector.java
Log:
JBEPP-984 Categories are not alphabetically sorted when adding portlet in category
Modified:
epp/portal/branches/EPP_5_1_Branch/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategorySelector.java
===================================================================
---
epp/portal/branches/EPP_5_1_Branch/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategorySelector.java 2011-07-07
13:17:42 UTC (rev 6838)
+++
epp/portal/branches/EPP_5_1_Branch/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategorySelector.java 2011-07-07
13:22:44 UTC (rev 6839)
@@ -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;
}