=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js 2012-02-13 19:27:46 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js 2012-02-13 20:04:18 +0000
@@ -1516,8 +1516,11 @@
function pagingList( currentPage, pageSize )
{
+ jQuery.cookie( "currentPage", currentPage );
+
var baseLink = jQuery( "#baseLink" ).val();
var url = baseLink + 'currentPage=' + currentPage + '&pageSize=' + pageSize;
+
window.location.href = url;
}
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/interceptor/ContextInterceptor.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/interceptor/ContextInterceptor.java 2012-02-08 16:08:43 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/interceptor/ContextInterceptor.java 2012-02-13 20:04:18 +0000
@@ -27,9 +27,12 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+import static org.hisp.dhis.util.ContextUtils.getCookieValue;
+
import java.util.HashMap;
import java.util.Map;
+import org.apache.struts2.ServletActionContext;
import org.hisp.dhis.system.database.DatabaseInfoProvider;
import org.hisp.dhis.system.util.TextUtils;
@@ -44,6 +47,7 @@
{
private static final String KEY_IN_MEMORY_DATABASE = "inMemoryDatabase";
private static final String KEY_TEXT_UTILS = "dhisTextUtils";
+ private static final String KEY_CURRENT_PAGE = "keyCurrentPage";
private DatabaseInfoProvider databaseInfoProvider;
@@ -70,6 +74,7 @@
map.put( KEY_IN_MEMORY_DATABASE, databaseInfoProvider.isInMemory() );
map.put( KEY_TEXT_UTILS, TextUtils.INSTANCE );
+ map.put( KEY_CURRENT_PAGE, getCookieValue( ServletActionContext.getRequest(), "currentPage" ) );
invocation.getStack().push( map );
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/resources/struts.xml 2012-02-13 19:27:46 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/resources/struts.xml 2012-02-13 20:04:18 +0000
@@ -71,7 +71,7 @@
- dataElement.action
+ dataElement.action?currentPage=${keyCurrentPage}
F_DATAELEMENT_UPDATE
@@ -160,7 +160,7 @@
- dataElementGroup.action
+ dataElementGroup.action?currentPage=${keyCurrentPage}
F_DATAELEMENTGROUP_UPDATE
@@ -205,7 +205,7 @@
- dataElementGroupSet.action
+ dataElementGroupSet.action?currentPage=${keyCurrentPage}
F_DATAELEMENTGROUPSET_UPDATE
@@ -280,7 +280,7 @@
- indicator.action
+ indicator.action?currentPage=${keyCurrentPage}
F_INDICATOR_UPDATE
@@ -373,7 +373,7 @@
- indicatorGroup.action
+ indicatorGroup.action?currentPage=${keyCurrentPage}
F_INDICATORGROUP_UPDATE
@@ -413,7 +413,7 @@
- indicatorGroupSet.action
+ indicatorGroupSet.action?currentPage=${keyCurrentPage}
F_INDICATORGROUPSET_UPDATE
@@ -480,7 +480,7 @@
- indicatorType.action
+ indicatorType.action?currentPage=${keyCurrentPage}
F_INDICATORTYPE_UPDATE
@@ -541,7 +541,7 @@
- dataDictionary.action
+ dataDictionary.action?currentPage=${keyCurrentPage}
F_DATADICTIONARY_UPDATE
@@ -589,7 +589,7 @@
- category.action
+ category.action?currentPage=${keyCurrentPage}
F_DATAELEMENT_UPDATE
@@ -611,14 +611,6 @@
F_DATAELEMENT_DELETE
-
-
@@ -681,7 +673,7 @@
- categoryCombo.action
+ categoryCombo.action?currentPage=${keyCurrentPage}
F_DATAELEMENT_UPDATE
@@ -778,7 +770,7 @@
- concept.action
+ concept.action?currentPage=${keyCurrentPage}
index.action
F_CONCEPT_UPDATE
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/resources/struts.xml 2012-02-13 19:27:46 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/resources/struts.xml 2012-02-13 20:04:18 +0000
@@ -111,7 +111,7 @@
dataSet.action
-
+
/main.vm
@@ -143,7 +143,7 @@
- dataSet.action
+ dataSet.action?currentPage=${keyCurrentPage}
F_DATASET_UPDATE
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/resources/struts.xml 2012-02-13 19:27:46 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/resources/struts.xml 2012-02-13 20:04:18 +0000
@@ -67,8 +67,7 @@
- organisationUnit.action
-
+ organisationUnit.action?currentPage=${keyCurrentPage}
F_ORGANISATIONUNIT_UPDATE
@@ -137,8 +136,7 @@
- organisationUnitGroup.action
-
+ organisationUnitGroup.action?currentPage=${keyCurrentPage}
F_ORGUNITGROUP_UPDATE
@@ -211,8 +209,7 @@
- organisationUnitGroupSet.action
-
+ organisationUnitGroupSet.action?currentPage=${keyCurrentPage}
F_ORGUNITGROUPSET_UPDATE
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/resources/struts.xml 2012-02-13 19:27:46 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/resources/struts.xml 2012-02-13 20:04:18 +0000
@@ -67,7 +67,7 @@
alluser.action
- showUpdateUserForm.action
+ showUpdateUserForm.action?currentPage=${keyCurrentPage}
F_USER_UPDATE
@@ -145,7 +145,7 @@
allRole.action
- showUpdateRoleForm.action
+ showUpdateRoleForm.action?currentPage=${keyCurrentPage}
F_USERROLE_UPDATE
@@ -165,7 +165,7 @@
/dhis-web-commons-security/logout.action
-
+
/main.vm
@@ -202,7 +202,8 @@
- getAllUserGroups.action
+ getAllUserGroups.action?currentPage=${keyCurrentPage}
+ F_USER_GRUP_UPDATE
@@ -218,6 +219,7 @@
+
/dhis-web-maintenance-user/ajax/jsonSystemAuthorities.vm
=== modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/resources/struts.xml 2012-02-13 19:27:46 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/resources/struts.xml 2012-02-13 20:04:18 +0000
@@ -68,7 +68,7 @@
- validationRule.action
+ validationRule.action?currentPage=${keyCurrentPage}
F_VALIDATIONRULE_UPDATE
@@ -118,7 +118,7 @@
- showValidationRuleGroupForm.action
+ showValidationRuleGroupForm.action?currentPage=${keyCurrentPage}
F_VALIDATIONRULEGROUP_UPDATE