when dealing with CellWidgets that gets their data through RequestFactory
two of the steps are:

1- one requestFactory call to get the count // this is done once
2- requestFactory calls to get the data for new range,
    as RangeChangeEvent fires.

these two steps are necessary to set CellWidget's setRowCount and setRowData

my question is, due to Asynchronous nature of RequestFactory,
it could be the case that Step2 gets executed before step 1 completes,
therefore we wouldnt have the count.

and if I use step1 (requestfactory.count) inside step 2, it would get called 
for every range change event,
but this would be unnecessary because we only need to count records once, 
not after every range change.

Below you can find a link to code snippet of my CellWidget + RequestFactory 

CellList+RequestFactory: http://pastebin.com/wY34jiuJ

could you please tell me how I can improve this code ?
mainly the guaranteed and correct order of RequestFactory calls for getting 
"Count of Items"
and "List of Data for current Range"

Thank You

-- 
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