You have to use the with() method on client side to tell RequestFactory to also fetch and populate any non-primitive/boxed relations.
-- Example: personRequest.findById(id).with("address", "friends", "friends.address")
Also note that the with() method has nothing to do with transient fields. You always need to use the with() method for any kind of non-primitive relations. If you also use the Editor Framework along with the RequestFactoryEditorDriver then you can call editorDriver.getPaths() to get a String array that contains all the paths the editor wants to be loaded => findByid(id).with(editorDriver.getPaths()).
If you have already done that but on client side your relation is still null then I would bet your transient field is null on the server.
-- J.
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment