0 Replies Latest reply on Apr 22, 2010 6:56 AM by josdaniel

    How to remove a status message added by the seam security module?

    josdaniel

      I would like to show a different status message, when a suspended user tries to login. If the user is active we return true from the authenticate method, if not we add a custom StatusMessage message mentioning that the User X has been suspended. The underlying Identity authentication also fails and adds a StatusMessage. I tried removing the seam generated statusMessage with the following methods, but it doesn't seem to work and shows me 2 different status messages (my custom message, seam generated). What would be the issue here?


      StatusMessages statusMessages;


      statusMessages.clear()
      statusMessages.clearGlobalMessages()
      statusMessages.clearKeyedMessages(id)