Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Seriously? That's what you're going with? I prefer this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!