0 Replies Latest reply on Sep 12, 2007 1:33 PM by kelly goedert

    error messages not displayed

    kelly goedert Apprentice

      Hi,

      I´m facing a problem that is, all my error messages generated by faces and hibernate validator are only displayed on the console. What do I have to do to display them on the page? My page is like this:

      <h:form id="loginForm">
       <div class="login-box">
       <table>
       <tr>
       <td colspan="2" class="login-head">Login SIG</td>
       </tr>
       <tr>
       <td class="label">User:</td>
       <td><h:inputText class="input" id="login" name="login"
       value="#{identity.username}" /></td>
       </tr>
       <tr>
       <td class="label">password:</td>
       <td><h:inputSecret id="password" class="input"
       value="#{identity.password}" /></td>
       </tr>
       <tr>
       <td colspan="2" align="right">
       <a4j:commandButton
       action="#{identity.login()}" value="Login"
       styleClass="large-button" />
       <input type="button" value="Cancelar" id="btCancel" class="large-button" />
       </td>
       </tr>
       </table>
      
       <div><h:messages/></div>
       </div>
      


      I tried s:message but it also didn´t work. My messages.properties file is on WEB-INF/classes

      Thanks

      Kelly