ListSelect updated datasource

Problem: ListSelect doesn’t display new data after setting datasource

I have a ListSelect that gets populated with suggestions based upon user input. My ListSelect is already showing . I update the datasource like so:

_suggestions.setContainerDataSource(new BeanItemContainer(CityWrapper.class, _model.getCitySuggestions()));

I know there is data because in debug mode when I click on the H button to select a view component, after selecting the ListSelect, the data magically appears.

Did you get it to work? And please tell if you’ve come up with some awesome solution :slight_smile:

Can’t say for sure off the top of my head, but I guess I’d start experimenting with requestRepaint() or replacing the whole select component instead of just the datasource.

Did you set your component immediate (setImmediate(true)) ?