On Sunday, November 25, 2012 3:32:37 PM UTC+1, xxJohnnyxx wrote:
Hello,via an RPC call I want to send a class(witch contains a Key variable) to the client. I figured out that there are some issues with that sort of variable on the client side, and I get this error:Line 9: The import com.google.appengine.api.datastore cannot be resolved So I have found some old solutions for this problem, but could not get them working for me... My question is, are there any up to date solutions?
Many GAE DataStore "helper libs" (Slim3 and Objectify at least) provide emulation and a CustomFieldSerializer for the Key class so it can be used on the client-side and transmitted over GWT-RPC.
AFAICT you could also use the String representation of the Key in your class, and transform from/back to Key in your code that accesses the DataStore.
And are there more variable types the client side has problems to handle with?
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/xvzjAMRhVGEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment