Update of 
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/java/com/finalist/cmsc/paging
In directory 
james.mmbase.org:/tmp/cvs-serv13403/cmsc/edit-webapp/src/java/com/finalist/cmsc/paging

Modified Files:
        PagingUtils.java 
Log Message:
CMSC-990 bug fix


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/edit-webapp/src/java/com/finalist/cmsc/paging
See also: http://www.mmbase.org/jira/browse/CMSC-990


Index: PagingUtils.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/java/com/finalist/cmsc/paging/PagingUtils.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- PagingUtils.java    27 Jul 2008 09:08:04 -0000      1.5
+++ PagingUtils.java    29 Jul 2008 11:33:48 -0000      1.6
@@ -1,6 +1,8 @@
 package com.finalist.cmsc.paging;
 
 import org.apache.commons.lang.StringUtils;
+import org.mmbase.bridge.NodeQuery;
+import org.mmbase.bridge.util.Queries;
 
 import javax.servlet.ServletRequest;
 import javax.servlet.http.HttpServletRequest;
@@ -122,4 +124,10 @@
       return holder;
    }
 
+   public static void setPagingAndSortingInformation(NodeQuery query) {
+      PagingStatusHolder pagingHolder = getStatusHolder();
+      query.setOffset(pagingHolder.getOffset());
+      query.setMaxNumber(pagingHolder.getPageSize());
+      Queries.addSortOrders(query, pagingHolder.getSort(), 
pagingHolder.getMMBaseDirection());
+   }
 }
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to