0 Replies Latest reply on May 7, 2009 4:43 PM by alex becker

    invalid Login: Who to wwitch infoMarker to errorMarker?

    alex becker Newbie

      Hi.
      I have configured a standard jpa identityManager at it runs fine.
      But if the login failed i get a faces errormassage Login failed with infoMarker. But i want to display the same message as errorMarker.


      My facelet include:


           <rich:separator></rich:separator>
            <rich:messages layout="list" >
                <f:facet name="errorMarker">
                  <h:graphicImage value="/img/error.gif"/>   
                </f:facet>
                <f:facet name="infoMarker">
                   <h:graphicImage value="/img/error.gif"/>   
                </f:facet>
                <f:facet name="passedMarker">
                   <h:graphicImage  value="/img/passed.gif" /> 
                </f:facet>
              </rich:messages>
      



      Inside the FacesSecurityEvents i have found the folloing Observer:



        @Observer(Identity.EVENT_LOGIN_FAILED)
         public void addLoginFailedMessage(LoginException ex)
         {
            StatusMessages.instance().addFromResourceBundleOrDefault(
                     getLoginFailedMessageSeverity(), 
                     getLoginFailedMessageKey(), 
                     getLoginFailedMessage(), 
                     ex);
         }
      



      Does anybody knows a simple way to configure the EVENTLOGINFAILED
      an return it as Severity.ERROR instead of Severity.WARN?
      Thanks,
      alex