Thx Thomas - I was hoping you would pick this up ;)
I was hopefull for the .with(...) solution; But it doesn't do much. I
changed the call to :
public void queryContacts() {
applicationRequestFactory.contactsService().getAllContacts().with("emailAddressses").fire(new
Receiver<List<ContactEntryProxy>>() {
@Override
public void onSuccess(List<ContactEntryProxy> contacts) {
clientFactory.getHelloView().setContacts(contacts);
}
@Override
public void onFailure(ServerFailure error) {
super.onFailure(error);
}
@Override
public void onViolation(Set<Violation> errors) {
super.onViolation(errors);
}
});
}
The Entity is defined like this :
public class ContactEntry extends BasePersonEntry<ContactEntry>
and the getter for getEmailAddresses is defined in the supertype
BasePeronEntry :
public List<Email> getEmailAddresses() {
return getRepeatingExtension(Email.class);
}
Can this be problematic ?
The full implemenation of my proxies look like this :
@ProxyForName(value = "com.google.gdata.data.contacts.ContactEntry", locator
= "be.koma.domain.ContactEntryLocator")
public interface ContactEntryProxy extends EntityProxy {
// NameProxy getName();
List<EmailProxy> getEmailAddresses();
}
@ProxyForName("com.google.gdata.data.extensions.Email")
public interface EmailProxy extends ValueProxy {
/** The email type. */
public String getRel();
public void setRel(String v);
/** Label. */
public String getLabel();
public void setLabel(String v);
/** Email address. */
public String getAddress();
public void setAddress(String v);
/** Email quota. */
public String getQuota();
public void setQuota(String v);
/** Whether this is the primary email address */
public boolean getPrimary();
public void setPrimary(boolean p);
/** Display name of the email address */
public String getDisplayName();
public void setDisplayName(String n);
}
--
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.