0 Replies Latest reply on Oct 15, 2008 1:01 PM by Thiagu Mariappan

    how to avoid global messages from login form

    Thiagu Mariappan Novice

      hi every one
      this is my login form .


      <h:messages styleClass="message"/>    
          <h:form id="login">       
                <h:outputLabel for="username">Username</h:outputLabel>
                <h:inputText id="username" 
                                    value="#{identity.username}" required="true"/>
                <h:message for="username" style="color:red" />
                <h:outputLabel for="password">Password</h:outputLabel>
                <h:inputSecret id="password" 
                                      value="#{identity.password}" required="true"/>
                <h:message for="password" style="color:red" />    
                <h:commandButton value="Login" action="#{identity.login}"/>          
      </h:form>
      


      i need to show validation error specif to input field from login form.
      so i use the message component for each input fields.
      here i cant remove the global messages component.
      because i need it to show the NotLoggedInException message.
      is there any way to remove the messages component and it is possible to show NotLoggedInException message to username input field message component.


      by
      Thiagu.m