ValueProxy example

215 views
Skip to first unread message

jeremy rose

unread,
Dec 23, 2010, 1:15:24 PM12/23/10
to Google Web Toolkit
I've got embedded objects within my entities and it appears as though
ValueProxy is just what I need. When I tried it out, my values are
always null. I verified the server-side is retrieving these embedded
values but I'm very new to RequestFactory so I'm sure I did something
wrong wiring things up. Are there any working examples of ValueProxy
I can follow?

JR

Thomas Broyer

unread,
Dec 23, 2010, 3:16:50 PM12/23/10
to google-we...@googlegroups.com
Even though they're not really relationships, they probably (I haven't yet checked) obey the same rules:
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 findReq = requestFactory.personRequest().find(personId).with("address");

jeremy rose

unread,
Dec 23, 2010, 6:34:22 PM12/23/10
to Google Web Toolkit
Thanks for your suggestion. It Worked!!!



On Dec 23, 12:16 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> Even though they're not really relationships, they probably (I haven't yet
> checked) obey the same rules:http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.h...
Reply all
Reply to author
Forward
0 new messages