I am with you that the loading indicator is never displayed when using a 
ListDataProvider. Using GWT 2.5, I tried all the methods mentioned in this 
thread, and none of them worked. So I came up with the following hack, 
which essentially temporarily hijacks the empty table widget for use as a 
loading indicator...

    // I call this method just prior to starting to async reload my data 
and update my ListDataProvider
    public void showLoadingIndicator() {
        this.emptyTableWidget = getEmptyTableWidget();
        setEmptyTableWidget(getLoadingIndicator());
        this.listDataProvider.getList().clear();
        this.listDataProvider.flush();
    }

    // I call this method after my I've updated the data in my 
ListDataProvider
    public void hideLoadingIndicator() {
        setEmptyTableWidget(this.emptyTableWidget);
    }


--Ian


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to