1 Reply Latest reply on May 10, 2007 12:42 PM by Pete Muir

    Seam's Events model

    Tony Mai Apprentice

      Hello,

      I am trying to understand if I could use Seam's Events model to force reload a page a user is viewing. In the manual, the code was written as:

      @Name("helloListener")
      public class HelloListener {
       @Observer("hello")
       public void sayHelloBack() {
       FacesMessages.instance().add("Hello to you too!");
       }
      }


      I am curious about the line "FacesMessages.instance().add("Hello to you too!");". Does it mean Seam has a way to change a page's contents when an event is raised?

      I.e. update an user's homepage when a new email has arrived. Is it possible to implement such thing with or without Seam's Events model?

      Thanks
      -tony