Persisting EntityProxy that contains List member, receiving null for member if List unchanged...?
Hey folks...
I'm having a strange situation. I have an EntityProxy that contains a member that is a List<ValueProxy> (all subclasses of the proxy types, of course).
Everything is set up fine, everything works, except for ONE case. It looks like this:
class MyEntityProxy ... {
public List<MyValueProxy> getMyList();
public void setMyList(List<MyValueProxy> myList);
}
MyEntityProxy entityProxy;...request.retrieveMyProxy().fire(...
...
request = newRequest();
entityProxy = request.edit(retrievedEntityProxy);
);
...
request.saveMyEntityProxy(entityProxy).fire(...);
If I do this (or if I set myList to a list containing the same values - possibly just values where .equals() is true between the old and new values), when I put a breakpoint on the server side, myList is null.
However, if I modify myList (add a different element(s) to it, remove one of the existing ones), THEN myList is correctly serialized on the server side.
Has anyone seen this before? I know there are problems with Set<ValueProxy> serialization, but this is the first one I've seen with List<ValueProxy>
- Tim
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/-/DYv_WSXB9-4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home