Thursday, January 22, 2015

Re: RequestFactory - ValueProxy is null

Jens, it works! Thanks a lot for this brief and great answer!

Am Donnerstag, 22. Januar 2015 19:08:22 UTC+1 schrieb Jens:
From the official GWT documentation:

When querying the server, RequestFactory does not automatically populate relations in the object graph. To do this, use the with() method on a request and specify the related property name as a String:

Request<Person> findReq = requestFactory.personRequest().find(personId).with("address");  

It is also necessary to use the with() method to retrieve any properties with types extending ValueProxy. The with() method takes multiple String arguments, so you can specify multiple property names at once. To specify nested properties, use dot notation. Putting it all together, you might have

Request<Person> findReq = find(personId).with("phone","","")  

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment