wood burning stoves 2.0*
The moose likes GWT and the fly likes GWT RequestFactory with() method to load nested property which is a Set returns one object only Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT RequestFactory with() method to load nested property which is a Set returns one object only" Watch "GWT RequestFactory with() method to load nested property which is a Set returns one object only" New topic
Author

GWT RequestFactory with() method to load nested property which is a Set returns one object only

Manuel Schrag
Greenhorn

Joined: Nov 24, 2011
Posts: 1
Hi,

I'm using the RequestFactory with GWT 2.4.0 for the communication between client and server and ran into the following issue:

Consider four entities



Here is the code which loads the User. The 'role' has three 'usecases' beeing returned by the server side method.


Everything seems to work perfectly, but at a closer look 'role' contains only one 'usecase' instead of three. I looked deeper in the GWT Code and observed that the data returned to the client contained everything as expected. The requestContext of the class com.google.web.bindery.requestfactory.shared.impl.AbstractRequest contains 5 proxies.
- 1 UserProxy
- 1 RoleProxy
- 3 UseCaseProxy

So, still correct. But in the decode method of the EntityCodex, something seems to go wrong, since the returned object only contains 1 UseCaseProxy anymore.

Does anyone have experience with this? Any help is appreciated
Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GWT RequestFactory with() method to load nested property which is a Set returns one object only
 
Similar Threads
how to get Clients CPU information on Server using Java RMI
SCEA Deliverables + Use cases
Design Question ( Data Access )
sets
please answer this 128 questions for WLS. Urgently!