Wednesday, June 26, 2013

Requestfactory, Embedded objects and .with

Hi chaps,

Have a problem understanding one thing regarding .with

In the following example,
http://code.google.com/p/gwtinaction2/source/browse/trunk/gwtia-ch08-requestfactory/src/com/manning/gwtia/ch08/v1/client/TestPanel.java?spec=svn216&r=216

you will find a part located in the fetch method.

factory.createContactRequest()
            .find(((Long) Long.parseLong(txtInput.getText())))
            .with("phones")
            .fire(rec);

I believe '.with' is used to grab datas from an embedded object within a class. (
Contact,Phone) because RequestFactory won't get it if you don't tell him to do so.


I believe then it could be Phone but
why "phones" ?

Can someone point me in the right direction ?

Regards

Pierre




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