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

fernando_jmt do-not-reply at jboss.com
Wed Jan 30 16:56:02 EST 2008


How your pages.xml login page is configured?

Does it have login-required="false"?


like:


  | <page view-id="/login.xhtml" action="#{identity.login}" login-required="false">
  |         <navigation from-action="#{identity.login}">
  |             <rule if="#{identity.loggedIn}">
  |                 <redirect view-id="/home.xhtml"/>
  |             </rule>
  |         </navigation>
  | </page>
  | 


BTW, you can invoke to any action you want when the page is loaded and then use the rules in order to forward to any page you want.

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

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



More information about the jboss-user mailing list