1 Reply Latest reply on May 22, 2009 11:19 PM by danygandhi.dan.gandhi.state.nm.us

    not receiving login failure error messages on login screen

    danygandhi.dan.gandhi.state.nm.us

      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">
                                                   <div
                                                        style="margin: 0 auto; text-align: left; margin-top: 30px; width: 350px;">
                                                   
                                                   <br />
                                                   <h:messages globalOnly="true"/>
                                                   <rich:panel>
                                                        <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}" />
                                                        </h:panelGrid></div>
                                                        
                                                   </rich:panel>
                                                   <div class="actionButtons" style="text-align: center"><h:commandButton
                                                        value="Login" action="#{identity.login}" /></div>
                                                   
                                                   <br />
                                                   
                                                   </div>
                                              </h:form>



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