Saturday, April 16, 2011

Basic Editor/Sub-Editor question

Hi All,

I believe this is a simple question, but it is something that is driving me mad. I created one editor with a sub-editor in it, very similar to the one Thomas presented here: https://gist.github.com/780560  (the main difference is that I'm using RequestFactory instead of RPC calls)

However, when I try to persist the main editor, it doesn't work - and no error is returned. After few hours debugging, I found the following message:

object references an unsaved transient instance

If Thomas' example were followed as is, the problem would be that the "AddressEditor" should have been committed before the "PersonEditor", as it references Address. My question is: shouldn't the AddressEditor be persisted before PesonEditor be? Do I have to do it "manually" on the server side? Am I missing something here?

Thanks in advance.
Aldo

--
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+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