[jboss-user] [JBoss Seam] - Re: problem in login.seam
panky_p
do-not-reply at jboss.com
Tue Oct 9 06:02:49 EDT 2007
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
More information about the jboss-user
mailing list