9 Replies Latest reply on Dec 26, 2007 9:44 AM by abelevich

    rich:messages not showing messages

    germanescobar

      Hi,

      I have a problem when I try to display a message the first time a page is shown. I have the following in my Managed Bean Constructor:

      
      public LoginBean() {
       FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Test", "test"));
      }
      


      However, the message is not displayed. If I change rich:messages for h:messages it works.

      Thanks.