Hi,
I have a login page like this:
<h:form> <div class="login-box"> <table> <tr> <td colspan="2" class="login-head">Login SIG</td> </tr> <tr> <td class="label">Usuário:</td> <td> <h:inputText class="input" id="login" name="login" value="#{identity.username}"/> </td> </tr> <tr> <td class="label">Senha:</td> <td> <h:inputSecret id="password" class="input" value="#{identity.password}"/> </td> </tr> <tr> <td colspan="2" align="right"> <h:commandButton value="Login" id="btLogin" class="large-button" action="#{identity.login}"/> <input type="button" value="Cancelar" id="btCancel" class="large-button"/> </td> </tr> </table> </div> <div id="errors"> <h:messages/> </div>?? </h:form>
I may just be confused with your question but, if I'm not mistaken, you have two question marks right after the div and, if the page is "first loaded", there wouldn't be any error messages.