I need to build an import feature for my app. I use gwtupload to send the file to the server and process it. The processing creates domain objects that needs to be displayed on the client side.
CSV file
name, age
Jim, 14
John, 34
Sue, 45
after processing I would have a list of 3 Person object.
I use RequestFactory so my domain object (Person) are on the server, and I have proxies (PersonProxy) on the client side. My first idea was to use JSON but then I don’t think it will be possible to create the proxies from the JSON. My other idea was to store the created domain objects and then remove the ones that the user does not want to import. The server would send the ids of the "temporary" stored objects to the client and then on the client I would send a RF request to fetch the objects and get the proxies.
How would you pass the created domain objects from the server to the client?
Thanks