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

    Seam's Events model

      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

        • 1. Re: Seam's Events model
          pmuir

          Not using the events model on its own. I'm not sure whether Seam Remoting can help you here - you could raise an event and watch for it using Remoting...