Vaadin 7 fire custom events between components

前端 未结 3 407
有刺的猬
有刺的猬 2021-01-21 03:43

I want to create custom events and fire them in some part of the view such that some other part of the view is updated/removed/refreshed.

I have tried by extending the C

3条回答
  •  抹茶落季
    2021-01-21 04:32

    Actaully, there are some frameworks build on Vaadin to decouple your view and provide easy event based communication as you said. This approach is called MVP patter - Model view presenter and it provides a event driver communication between components. There are som MVP Vaadin frameworks available at the time:

    https://github.com/peholmst/MVP4Vaadin

    https://github.com/panter/org.vaadin.mvp

提交回复
热议问题