bug #6811
Updated by Andreas Kohlbecker about 6 years ago
For each request to a View the View bean is initialized 3x for the same `view-scope`.
After the request has been processed 3 pairs of View-Presenter instances of the same classes exist:
View@A-Presenter@A, View@B-Presenter@B, View@C-Presenter@C
This causes confusion in the UI: For example while View@A is being displayed, but the UIDL request send in turn of interaction with the UI is send to another View@C and thus is processed by Presenter@C.
This is most probably caused by using the ApplicationEventBus for the View/Presenter communication. A Spring Component which is annotated with `@EventListener` is initialized by spring in each of the spring scopes. this way all presenters are always initialized in the scope of a single view.
A solution to this problem is to use the [[VaadinNotes#Addon-Vaadin4Spring-Event-Bus|Vaadin4Spring-Event-Bus vaadin addon]]