2 Replies Latest reply on Mar 3, 2008 9:29 AM by Lee Coomber

    How to ignore successful login message?

    Jack Karmoni Newbie

      I don't want seam to display a successful login message, since I handle it in myself in the top toolbar.  Also Seam only displays the username ID, I prefer to display their first name.


      I traced it to this piece of code in seam:



         @Observer(Identity.EVENT_LOGIN_SUCCESSFUL)
         public void addLoginSuccessfulMessage()
         {
            FacesMessages.instance().addFromResourceBundleOrDefault(
                     getLoginSuccessfulMessageSeverity(), 
                     getLoginSuccessfulMessageKey(), 
                     getLoginSuccessfulMessage(), 
                     Identity.instance().getUsername());
         }
      
         public Severity getLoginSuccessfulMessageSeverity()
         {
            return FacesMessage.SEVERITY_INFO;
         }
      
         public String getLoginSuccessfulMessage()
         {
            return "Welcome, #0";
         }
      
         public String getLoginSuccessfulMessageKey()
         {
            return "org.jboss.seam.loginSuccessful";
         }  
      



      Is there any way for me to configure seam to ignore this message from being sent?