[jboss-user] [JBoss Seam] - Re: [NEWBIE Q] redirecting to a certain page if already logg
fernando_jmt
do-not-reply at jboss.com
Thu Jan 31 10:06:48 EST 2008
Try the following change:
|
| <?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 from-action="#{userAuthenticator.checkLogin}">
| <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>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125184#4125184
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125184
More information about the jboss-user
mailing list