Hi Guys,
currently our company decided to switch some of our applications to Vaadin but we are facing a problem.
For the moment we are just trying to build a simple application which refresh prices very often.
We have a simple Table with 10 rows and 7 columns.
The Table is bind on a BeanContainer which contains those 10 items.
Every 100ms we receive a new price so we have to update the 7 properties of an item by doing
item.getItemProperty("myProperty").setValue("newValue");
This means that the fireValueChange() method is called 7 times for refresh only one item
We wonder if there is a way to resfresh all the property of an item in one shot ?
Cause of all fired events (we supposed) the CPU usage of the browser is about 90%.
We are new in vaadin technology so maybe there is better way to build a Table for high refresh frequence.
We don’t have to add/remove items often (the Table is populated at the init of the application)
We just have to refresh item with high refresh frequence.
We choosed BeanContainer because we will always receive the bean type.
you might want to try extending the Table class, and then calling disableContentRefreshing() before you begin your updates and enableContentRefreshing(true) once you’re done. Disclaimer: I’m not sure if this will help on the client side.
Another option would be to use some other component if you only have a 10*7 table, e.g. GridLayout might be faster.
ok, I see. In that case this could end up so that you need to create your own simple lightweight widget (based on an HTML table maybe). A refresh rate of 100ms is quite short and unfortunately the vaadin table is really not intended for such use.