can someone explain me how the eventbus works, I saw all doc about that but I didn't understand
I will give you what I want to do; So I have AccountPresenter and AccountView so in my view I have Button to open window in which I create my account, what I want to do is to slipe the view and creation of the window in an other View Presenter and can it in AcccountPresenter using eventBus of spring vaadin or an otther EventBus. I don't really understand the role of this .
Thank you
For event-handling in spring you first should create an event like:
Then you would need something to publish your event:
and somebody who listens to it:
But as smooth as this is, in your case it's not the way to go I think. Instead you should use Vaadin's
Navigatorand adjust theClickListenerof your button to navigate to the other view.Checkout https://github.com/khauser/microservices4vaadin/tree/master/microservices/frontend, there you would have both in place. The event-handling with spring and using the
Navigator.