Thursday, November 7, 2013

Re: How to fetch list of object which contains not a primitive type with request factory ?

Use .with("b_list.c")
See http://www.gwtproject.org/doc/latest/DevGuideRequestFactory.html#relationships

On Thursday, November 7, 2013 11:39:07 AM UTC+1, Nir Bar-on wrote:
Hi
I have a proxy object A which contains a list of proxies (B proxies)

when fetch from database I am using

requestContext.findWithId(longId).with("b_list")

this work as expected and I am getting the list  of B proxies (. can execute size() , and get(index) on the list )

the issue is when I am doing

bproxy = blist.get(0) --> this return a B proxy instance the first one on the list

then B proxy also has getters for a C proxy object .

so when I execute bproxy.getC() -- I am getting null value.


What should I put in the with() method in order for request factory will bring me a list of objects that contains other objects -- meaning that the type of the list is not String or primitive , so the list type it self as getters ?

Thanks
Nir

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate