How to use ListBox control

I’ve used async table using content providers, such as update types though CAF API, now I’m trying to use the ListBox control but would like to populate it with results from a web services call, that I’ve parse myself. I know that I need to use the ListTableContentProvider but I not sure how to properly set it up because the caf samples always build it in a static fashion. In my case, I need a dynamic way of constructing my ListBox content.

Can you build the dynamic contents for the List box provider in the getter for the bound managed bean?

In the Core Controls sample, there is a simple getter that is used by the List box page:


public ITableContentProvider getMeaContent() {
        return m_meaContent;
    }

It seems like you could check to see if the data was populated, and if not, invoke the webservice and generate the content provider.