I'm missing something basic here. Given File EntityProxy, and
FileData ValueProxy, I've tried several combinations such as:
----
File file = req.edit(existingFile);
file.getData().setTextData("something");
req.persist().using(file).fire(...);
and
File file = req.edit(existingFile);
FileData data = req.edit(existingFile.getData());
data.setTextData("something");
req.persist().using(file).fire(...);
and
File file = req.edit(existingFile);
FileData data = req.create(FileData.class);
data.setTextData("something");
file.setData(data);
req.persist().using(file).fire(...);
----
None of these will update the FileData ValueProxy on the existing File
object. On the server side the setter just receives a FileData
instance with a null property value for getTextData().
- Logging shows that persist() is being called as expected
- No exceptions thrown for any technique
- FileData implements hashCode and equals()
- file.setData(...) is being called on the server, and it is being
passed an instance of FileData, however the text property is always
null
- I am able to edit other non-ValueProxy properties on the File object
successfully, so it doesn't appear to be a problem with the process as
a whole
Any idea what I'm missing (is there a correct example out there)?
Thanks,
Ryan
--
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.