Imagine an example:
let say I want to show in the client the following table of Sales:

Id       | Client              | Product           | Number
-------------------------------------------------------------------------
1        | John Doe(2)     | iMac 27'(23)    | 1
2        | Chris More(3)   | Mac book'(4)   | 2

With Sale being:

class Sale {
       private long id;
       private Client client;
       private Product product;
       private Integer number;

       .....
}

John Doe(2) is the name of the client and 2 is the id. Same thing for
Product.
The problem is that to find out the Client's name I need to send it to the
client (in the case of RequestFactory as a ClientProxy).
I don't want to send the whole Client throw the wire when I only need the id
and a "string representation". Plus, the example being a table, it may be
listing 30+ Sales, and include the relationship makes it really heavy to
load.

The question is how can I do with RF to get a "string representation" and
the id of a Proxy without loading it all?

Before using RF I used two object i.e: Sale and SaleDto, and I made the
conversion myself on the server.

Thanks in advance!

-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to