Thomas,

You were right about using the '.with("team")' option, that solved my
problem. Thanks for the explanation about the "path" parameter as well.

Thanks a lot!



2011/12/10 Thomas Broyer <[email protected]>

> Because PlayerProxy#getTeam() holds a reference to another proxy
> (TeamProxy), and PlayerProxy is an EntityProxy, you have to explicitly
> request the "team" property when retrieving the player from the server. Are
> you correctly using a .with("team") in your request? Otherwise, getTeam()
> will simply return 'null', which could explain the behavior you're
> experiencing.
> See
> http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships
>
> ProxyRenderer#getPaths() helps in populating the .with() of your requests:
> when requesting your teams, you don't have to know which properties are
> used by the ProxyRenderer, you simply ask it, because the ProxyRenderer
> knows what it needs:
> getAllTeams().with(myTeamProxyRenderer.getPaths()).fire(...). That way,
> when you change the way you render your teams and need more or less
> properties, you don't have to update your requests everywhere: simply
> update the return value of getPaths() and, provided you always use
> .with(x.getPaths()) everywhere, it will "just work".
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/6lcNO8QoYNAJ.
> 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.
>

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