On Thu, Oct 7, 2010 at 2:35 PM, Patrick Julien <[email protected]> wrote: > FYI, if I modify to: > > �...@override > public String saveTriggered() { > getRequestContext().edit(getValue()); > getValue().setActive(!view.isPracticeDeactivated()); > save(); > return null; > } > > still throws
You need to write something like this: EntityProxy canEdit = getRequestContext().edit(getValue()); canEdit.setActive(...); EntityProxy instances that have been returned from the server represent immutable snapshots of the state of the domain entity. Calling RequestContext.edit() returns a mutable copy, it doesn't make the snapshot mutable. -- Bob Vawter Google Web Toolkit Team -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
