Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
EventRouter own events
Hi there,
i try to implement my own event using EventRouter. Can someone please post me a short implementation example Component/Event/Listener? I'm a bit confused at the moment.
Thank you all !!
Matthias
This doesn't answer your question directly, but... I once tried to understand how EventRouter works, and I didn't find it fun to use. So I wrote Blackboard.
It's basically a 3rd party replacement/complement for EventRouter that should have a more intuitive API. I also wrote a small how-to for it: https://github.com/wolfie/Blackboard/wiki/.
Yes I know your add-on ;-) thank you ...
but I try to use the "official" way ... so is there an example out there?
Thank you,
Matthias
Matthias Jakob: but I try to use the "official" way ... so is there an example out there?
Unfortunately I don't think there are good examples out there, but the class is quite generic and can be used in many contexts. See the package javadoc and the class javadoc, and maybe how it is used by Vaadin AbstractComponent.
Also, the event router is at least mentioned in Nikolas Fränkel's book Learning Vaadin.