How to refresh table rows after adding new data.

Table is filled with data from DB via:

public InfoDataContainer extends BeanItemContainer<InfoData> implements Serializable

And the form for adding new data is generated via FieldGroup through:

public class AddDataContainer extends BeanItem<InfoData> implements Serializable

So when I add new data, I have to refresh page in order it appears in the table. How to bind BeanItemContainer with BeanItem in order data refreshes automatically on addition or deletion of items? If I try to refresh table vie getting all the data from DB and setting it to BeanItemContainer I receive internal error.