Re: creating EntityProxyId from the client side
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. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: creating EntityProxyId from the client side
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 RequestContext subclass? Request getEntityWithId(long id); To hijack this thread somewhat, has anyone done any work calling the underlying IdFactory methods as Tom mentioned, with the intent of already getting a history token without type information? My Places know which type they represent, and so their tokenizers can work with more simple history tokens, if this is possible. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: creating EntityProxyId from the client side
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 wrote: > 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 Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
creating EntityProxyId from the client side
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 Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.