In my case Foo is just a top of a complicated object graph and yes I want to set the default values, I also want to be able to do calculation on Foo with out persisting it. I guess I could implement it on the client side but that is a lot of work and I am not sure it will pay off.
Any way, returning null in Locator.getId() if the object is't persisted seems to do the trick.
Jakob
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/-/HlhGM3Px808J.
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