Proxies reached from getters from a mutable proxy aren't mutable
doc for edit:
/**
* Returns a mutable version of the proxy, whose mutations will accumulate in
* this context. Proxies reached via getters on this mutable proxy will also
* be mutable.
*/
<T extends EntityProxy> T edit(T object);
reduced code showing problem:
final Driver driver = GWT.create(Driver.class);
driver.initialize(requests, view);
requests.domainRequest().get(getSessionId(),
getId()).with(driver.getPaths()).fire(chain.add(new
Receiver<PracticeHandle>() {
@Override
public void onSuccess(final DomainHandle response) {
final PracticeRequest rc =
requests.practiceRequest();
final PracticeHandle practiceHandle =
rc.edit(response);
final Request<Long> r =
rc.persist(getSessionId(), practiceHandle);
// for loop added to show problem
for (final PatientNotificationHandle handle :
practiceHandle.getPatientNotifications()) {
handle.setNotificationScheme(PatientNotificationScheme.Daily);
}
// rest removed
}
}));
handle.setNotificationScheme throws here with "AutoBean is frozen"
sub-editors aren't able to set values either unlike my phantom problem
I reported earlier
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors