Your 'editPerson' variable points to the immutable version received by your 
first request. When you pass it to the RFED, it'll RequestContext#edit() it, 
and modify the returned mutable version.

You'd like to "editPerson = editRequest.edit(foundPerson)" first (calling 
RequestContext#edit() on a mutable object returns that object, so it's safe 
to pass editPerson to the RFED; actually you could even pass the 
foundPerson, as calling edit() in the same RequestContext on the same 
immutable proxy will always return the same mutable proxy).

-- 
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/-/tt_myCXgoZUJ.
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