creating EntityProxyId from the client side

2011-02-22 Thread Tom Fishman
When I know the ID of an entity on the server side, can I generate EntityProxyId directly from the client side and use requestFactory.find(...) to get it from server? Now, I have to call my own function to get it. -Tom -- You received this message because you are subscribed to the Google

Re: creating EntityProxyId from the client side

2011-02-22 Thread Tom Fishman
Has anyone tried com.google.gwt.requestfactory.shared.impl.IdFactory.getId(String typeToken, serverId) on the client side? On Feb 22, 12:13 am, Tom Fishman tom.fish...@dishcrunch.com wrote: When I know the ID of an entity on the server side, can I generate EntityProxyId directly from the client

Re: creating EntityProxyId from the client side

2011-02-22 Thread Colin Alworth
My approach has been to use RequestFactory.getProxyId to turn known ids into EntityProxyIds, and from there to get the actual instance. This works for the most part, unless you actually want to use the same id format that the server uses. In this case, why not add a method to your

Re: creating EntityProxyId from the client side

2011-02-22 Thread Y2i
I also use RequestFactory.getProxyId() but I've never used IdFactory because I haven't seen a need for externalizing EntityProxyId on the client for anything except for history management. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group.