I am trying in my login page | <tr> | <td> | <h:commandButton type="submit" value="Login" action="#{identity.login}"/> | </td> | </tr> | <tr> | <td colspan="2" align="center"> | <h:message for="" style="color:red"/></td> | </tr> | and in pages.xml
| <pages xmlns="http://jboss.com/products/seam/pages" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xmlns:s="http://jboss.com/products/seam/taglib" | xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-1.3.xsd" | no-conversation-view-id="/login.xhtml" | login-view-id="/login.xhtml"> | <page view-id="*"> | <navigation from-action="#{identity.logout}"> | <redirect view-id="/login.xhtml"/> | </navigation> | </page> | | <page view-id="/login.xhtml"> | <navigation> | <rule if="#{identity.loggedIn}"> | <redirect view-id="/main.xhtml"/> | </rule> | </navigation> | <navigation from-action="#{identity.login}"> | <redirect view-id="/main.xhtml"/> | </navigation> | </page> | <exception class="org.jboss.seam.security.AuthorizationException"> | <redirect view-id="/error.xhtml"/> | </exception> | | <exception class="javax.security.auth.login.LoginException"> | <redirect view-id="/login.xhtml"/> | </exception> And when i try to login.seam it gives me a message "Please log in first" but i dont want that message to be displayed when first time i visit to login page. Thanks for the reply, i am trying all the suggestions given by forum, but i am still not getting how to remove that message!! is there any thing wrong in my code?? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092929#4092929 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092929 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user