Author: hoang_to
Date: 2009-11-30 22:47:12 -0500 (Mon, 30 Nov 2009)
New Revision: 881
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIUserInGroup.java
Log:
GTNPORTAL-311: Problem when edit membership of user in Group Management Tab
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 2009-12-01
01:32:58 UTC (rev 880)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIUserInGroup.java 2009-12-01
03:47:12 UTC (rev 881)
@@ -134,8 +134,12 @@
}
UIGridUser uiGrid = getChild(UIGridUser.class);
pageList.setPageSize(5);
- uiGrid.getUIPageIterator().setPageList(pageList);
-
+
+ UIPageIterator pageIterator = uiGrid.getUIPageIterator();
+ /** We keep the currently selected page index **/
+ int backupPageIndex = pageIterator.getCurrentPage();
+ pageIterator.setPageList(pageList);
+
if (group != null)
{
String groupId = group.getId();
@@ -164,6 +168,8 @@
removeChild(UIGroupMembershipForm.class);
}
+ /** Reset the selected page index **/
+ pageIterator.setCurrentPage(backupPageIndex);
}
public void processRender(WebuiRequestContext context) throws Exception
Show replies by date