On Wednesday, December 15, 2010 6:14:10 AM UTC+1, RyanD wrote:
>
> This might be better logged as a feature request, but I wanted to 
> check that I hadn't missed something first. 
>
> Given something like this: 
>
> PersonProxy person = context.create(PersonProxy.class); 
> person.setName(name); 
> context.persist().using(person).fire(..... etc. 
>
> In the call to: 
>
> onSuccess 
>
> person.getId() == null 
>
> Even though of course the persistence layer assigned it an ID. 
>
> Seems like it would be pretty useful to have GWT RF not necessarily 
> transmit every person property back to the client after a successful 
> persist, but certainly getting the ID back to the client would be 
> useful. For example, after the successful persist, let's say I want 
> to restfully navigate to a PersonPlace and use the person's new ID 
> (assigned by persistence layer) in the token?
>


Can't you have your persist() method return the ID, so you have it passed as 
argument to the onSuccess method?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to