Screens with Filter seems to load the screen twice

I am using Cuba platform 7.2.11. I am testing Cuba application over a bandwidth limited channel (VSAT). I notice that on lookup screens with Filter component, the screen loading progress bar runs from left-to-right 2 times. Whereas screens without the Filter only loads once.

  1. Is this the expected behaviour, i.e. Filter will cause the screen to reload after the initial load ?
  2. Is there any way to improve the performance so that it only loads the screen once ?
  3. Are there any other components or programming that will cause the screen to load twice ?

Regards
CK

The problem is somewhere on your screen.
There are several reasons:

  • The screen has annotation ‘@LoadDataBeforeShow’ and automatically loads the data into the container. But in the code of the controller, you additionally call the container loader yourself.
  • If you assign a filter to the controller yourself using ‘filter.setApplyTo(myTable)’ - this will also cause a new data load.