I want to implement pagination for the search results based on the number of results demanded by the user per page. I was wondering if anyone can point me to an example.
Hi, there is simple example in opsoro http://forge.alfresco.com/plugins/scmsvn/viewcvs.php/opsoro/trunk/source/web/webScripts/opsoro/searc.... Simple because it isn't real pagination because it executes a query each time the Web Script is called and returns the queried subset/offset. You can't implement a real pagination in a WebScript because you don't have a session state at the server, it is REST. So the most effective way is to implement the pagination at the client side via JS and a AJAX Framework. Just return the whole Query result as a JSON or XML respone and do the whole other stuff via JS at the client. Cheers, Jan