views:

67

answers:

1

Hello all, I'm trying to implement paging in my GAE-J/GWT app. Paging forward with a cursor is straight-forward, but I'm wondering if there's some best-practice for paging both forward and backward with cursors.

Thanks!

+1  A: 

If you are talking about datastore cursor you can`t; The only way to do it is to store previous cursors in memcache with page numbers (cursros are just strings) and when you go back to extract the cursor/result for the page from the cache.

Ilian Iliev