[jboss-user] [JBoss Seam] - Re: [NEWBIE Q] redirecting to a certain page if already logg

reyjexter do-not-reply at jboss.com
Thu Jan 31 09:11:19 EST 2008

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.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125153#4125153

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125153

More information about the jboss-user mailing list