I have a working request context :
public interface ContactsService extends RequestContext {
Request<List<ContactEntryProxy>> getContacts(int offset, int pageLength);
Request<String> persist(ContactEntryProxy entry);
Request<Void> remove(ContactEntryProxy entry);
Request<List<ContactEntryProxy>> findContacts(String search);
}
When I create a ContactEntryProxy like this :
** ContactEntryProxy contactEntryProxy =
contactsService.create(ContactEntryProxy.class);*
Then the getter for emailAddresses of this newly created contactEntryProxy
** List<EmailProxy>contactEntry.getEmailAddresses; *
*
*
always returns NULL, while on the server the value is empty list.
I cannot do something like
*contactsService.create(ContactEntryProxy.class).with("emailAddresses")
*?
Problem is that the underlying EntityObject does not have a
setEmailAddresses;
So I have no way to populate the email addresses on the client because :
- I cannot add to a null list
- I cannot set to a new list.
Koen
--
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.