To create a new contact:
ContactRequest cr = rf.contactRequest();
// create contact here
ContactProxy contact = cr.create(ContactProxy.class);
// populate the proxy here, you need not verify, it is created here, just
that it is not sent to the server
contact.setAddress("xyz");
// now send this to server
cr.persist(contact).fire(new Receiver() {
public void onSuccess(Void response)
{
log.info("Contact saved"); // here it is not contact created, but saved
}
}
--
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.