Olivier schrieb:

> I have a form that is send to request some data on the server. The
> result I need is a list of items and a list of filters.
> What would better, sending one request that will get me both list or
> sending 2 different requests, one for each list ?

Depends. If the retrieval of items and filters is independent from
each other you might start two parallel requests. If the server
can create the list of items and filters at the same time (e.g.
because you need the values of the first list to be able to fill
the second list), you should get both lists in one request to
avoid the repeated work of getting the first list on server-side.

The same can be said if your application needs both lists before
being able to continue the workflow.

So without knowing you concrete application at all I would suggest
to put both lists in one request. If your application also loads
each list separately in other parts, you can add a parameter to
the request leading to the effect that the corresponding member
in that class is null allowing you to reuse that remote method.


Regards, Lothar
-- 
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