3 Replies Latest reply: Jan 22, 2013 6:17 PM by Christian Sadilek RSS

    How to add and EventHandler to an @Templated component?

    Michael Hirsch Newbie

      I have an @Templated class which extends composite.  In the Errai-UI documentation https://docs.jboss.org/author/display/ERRAI/Errai+UI#ErraiUI-Concepts is says:


      Event handler methods annotated with a bare @EventHandler annotation (no annotation parameter) are wired to receive events on the @Templated component itself.




      If I try to use a base @EventHandler My IDE shows this as an error and the build fails with


      annotation org.jboss.errai.ui.shared.api.annotations.EventHandler is missing value



      Strangely, devmode doesn't give me an error, but the page never loads--it just shows a blank page.


      Is there a way to add and EventHandler to my templated class?