1 Reply Latest reply on May 22, 2009 11:19 PM by daniel gandhi

    not receiving login failure error messages on login screen

    daniel gandhi Newbie

      HI Guys,
      I am having trouble receving generic error messages genrated by seam during login failures.Here is snippet of my login.xhtml.please let me know what i am doing wrong

                                              <h:form id="login">
                                                        style="margin: 0 auto; text-align: left; margin-top: 30px; width: 350px;">
                                                   <br />
                                                   <h:messages globalOnly="true"/>
                                                        <f:facet name="header">Login</f:facet>
                                                        <ui:remove><h:messages globalOnly="false" styleClass="message"
                                                             errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"/>
                                                        <rich:messages id="ajaxmsgs" globalOnly="false"
                          styleClass="message" errorClass="errormsg" infoClass="infomsg"
                          warnClass="warnmsg" ajaxRendered="true"
                          rendered="#{showGlobalMessages != 'false'}" />     </ui:remove>
                                                        <div class="dialog"><h:panelGrid columns="2"
                                                             rowClasses="prop" columnClasses="name,value">
                                                             <h:outputLabel for="username">Username</h:outputLabel>
                                                             <h:inputText id="username" value="#{identity.username}" />
                                                             <h:outputLabel for="password">Password</h:outputLabel>
                                                             <h:inputSecret id="password" value="#{identity.password}" />
                                                   <div class="actionButtons" style="text-align: center"><h:commandButton
                                                        value="Login" action="#{identity.login}" /></div>
                                                   <br />

      i also tried to use different variations of the code under ui:remove tags,but with no success.Please help.