from DataStore API, we can use:

Cursor originalCursor = 
preparedQuery.asQueryResultList(withLimit(20)).getCursor();
String encodedCursor = original.toWebSafeString();

now we have obtained "encodedCursor" on the server.

when using RequestFactory, and RequestContext as below:

public interface EmployeeRequest extends RequestContext {
List<EmployeeProxy> findEmployeeEntries(int start, int length); //finding a 
range
}

public interface EmployeeProxy extends EntityProxy{
String getName();
String getAddress();
}

where can we put this "encodedCursor" so that the client receives it ?
(GAE DataStore documentation talks about passing this encodedCursor to the 
client)

adding 
Sring getEncodedCursor();
to our EmployeeProxy does not seem like a good idea ?
because we also have to modify our EmployeeEntity on the server.

do you have any suggestion as to how can we pass the encodedCursor from server 
to the client,
using RequestFactory ?

Thank You

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to