Author: haint
Date: 2011-11-07 01:34:26 -0500 (Mon, 07 Nov 2011)
New Revision: 7992
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIUserInGroup.java
Log:
GTNPORTAL-2261 Exception when add over 10 user into group
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIUserInGroup.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIUserInGroup.java 2011-11-07
03:32:25 UTC (rev 7991)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIUserInGroup.java 2011-11-07
06:34:26 UTC (rev 7992)
@@ -20,6 +20,7 @@
package org.exoplatform.organization.webui.component;
import org.exoplatform.commons.utils.EmptySerializablePageList;
+import org.exoplatform.commons.utils.ListAccess;
import org.exoplatform.commons.utils.PageList;
import org.exoplatform.portal.webui.util.Util;
import org.exoplatform.services.organization.Group;
@@ -133,7 +134,9 @@
{
OrganizationService service =
getApplicationComponent(OrganizationService.class);
MembershipHandler handler = service.getMembershipHandler();
- pageList = new FindMembershipByGroupPageList(group.getId(),
handler.findAllMembershipsByGroup(group).getSize());
+ ListAccess<?> list = handler.findAllMembershipsByGroup(group);
+ pageList = new FindMembershipByGroupPageList(group.getId(),
+ list.getSize() > 10 ? list.getSize() : 10);
}
UIGridUser uiGrid = getChild(UIGridUser.class);
pageList.setPageSize(5);