You'll need a setter in order to save the Contact entity with the list of
email addresses in one request. Since RequestFactory on the client knows
only about the entity interface, the create() method can do no more than
initialize all entity properties with null.

You could, however, make multiple requests:

1. Persist the contact and create an empty (non-null) list on the server.
2. Retrieve the newly-created contact .with("emailAddresses")

/dmc

On Mon, Mar 7, 2011 at 3:21 PM, koma <[email protected]> wrote:

> This is a missing piece of code for the above question :
>
> *@ProxyForName(value = "com.google.gdata.data.contacts.ContactEntry",
> locator = "xxx.server.request.ContactLocator")*
> *public interface ContactEntryProxy extends EntityProxy {*
> *
> *
> * List<EmailProxy> getEmailAddresses();*
> * *
> * NameProxy getName();*
> *
> *
> * void setName(NameProxy name);*
> * *
> * void setNickname(NicknameProxy nicknameProxy);*
> *
> *
> * NicknameProxy getNickname();*
> * *
> *
> *
> *}*
>
>  --
> 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.
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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.

Reply via email to