Button reaction in different package

Hey guys,

I am looking for a way to react to a button click in a different class in a different package. I developed a hibernate application and now I want to combine it with a Vaadin UI. Basically the purpose of the UI is to enter information on a new object, which is then supposed to be saved in a MySQL database. As soon as the button “Save User” is clicked, I want the session.save(); method to be called. As I mentioned, my problem is that I don’t know how to call this method as a reaction to the button click in a different class.
Thankful for any kind of help,

Simon

Hello Simon. Any class can implement a click listener for you button. You just need to set your listener implementation to your button.

The last example in this page has more information about it:
https://vaadin.com/docs/-/part/framework/application/application-events.html