pombreda / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

Runnable does not fire when trying to load more than one package at a time for the first time #508

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
1.1.2
Detailed description:
When loading multiple Google Visualization libraries using
VisualizationUtils.loadVisualizationApi(onLoadCallback, PieChart.PACKAGE, 
AreaChart.PACKAGE, Table.PACKAGE);
the onLoadCallback never gets called. Curiously it happens only during the 
first pass. When some action on the ui causes another walk down that code it 
works fine.

Workaround if you have one:
VisualizationUtils.loadVisualizationApi(new Runnable() {

            @Override
            public void run() {
                VisualizationUtils.loadVisualizationApi(new Runnable() {            
                    @Override
                    public void run() {
                     VisualizationUtils.loadVisualizationApi(new Runnable() {

                                     @Override
                                     public void run() {
                                        //do your processing here

                                     }

                             },  Table.PACKAGE);
                    }

               },  AreaChart.PACKAGE);

           }
        }, PieChart.PACKAGE/*, AreaChart.PACKAGE, Table.PACKAGE*/);
Links to the relevant GWT Developer Forum posts:

Original issue reported on code.google.com by mnx...@motorola.com on 11 Dec 2012 at 5:12