1) page gets downloaded (Downloaded as on to the disk?)
I meant the Page is rendered with empty dropdown values
I had put a debug point on the service layer, that gets called after the page is rendered.
2) dropdown does not get populated, but it has the values
I meant that dropdown does not get populated
I a gist i have a simple html and in the onmoduleLoad method i am trying to populate a dropdown, for now let us say it is Male/Female. This value is a reference data and that comes from database.
I have written a service(ServiceImpl) would query database and result the arrayList, this is been called from gwt client through rpc
ServiceAsync serviceAsync = GWT.create(Service.class)
String[] str = null;
serviceAsync.getMasterData(new AsyncCallback<String[]>()) {
OnFailure{}
OnSuccess (String[] result){
str =result
}
//now populate dropdown.
Some how i felt this will work for onclick events but not onload as this is asynchronous call and will not wait and proceed with executing onmoduleload method
Hope this clarifies
Thanks