hey thanks for all the replies.
anyway this is my login.page.xml (just the same as the pages.xml but specifically for
login page. i just use this because this is generated by seam-gen):
| <?xml version="1.0" encoding="UTF-8"?>
| <page
xmlns="http://jboss.com/products/seam/pages"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xsi:schemaLocation="http://jboss.com/products/seam/pages
http://jboss.com/products/seam/pages-2.0.xsd"
| login-required="false"
action="#{userAuthenticator.checkLogin}">
|
| <navigation>
| <rule if="#{identity.loggedIn}">
| <redirect view-id="/dashboard1234.xhtml"/>
| </rule>
| </navigation>
|
| <navigation from-action="#{identity.logout}">
| <redirect view-id="/login.xhtml" />
| </navigation>
|
| <navigation from-action="#{identity.login}">
| <rule if="#{identity.loggedIn}">
| <redirect view-id="/dashboard.xhtml"/>
| </rule>
| </navigation>
|
| </page>
i agree with wachtda that the page action doesnt fire if you try to access the login.seam
directly. when i use the base url instead, i am redirected to login.seam and the page
action for login page is executed.
rey
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125153#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...