[jboss-user] [JBoss Seam] - Redirect in pages.xml using if condition

gingming do-not-reply at jboss.com
Wed Mar 28 21:33:38 EDT 2007


I'd like to redirect the user to a different page if certain condition is not correct.  I'm just wondering if the pages.xml is a right place to do it.  I tried the following but it doesn't work:


  | 	<page view-id="/protectedPage.xhtml" login-required="true" conversation-required="true">
  | 		<navigation>
  | 			<rule if="#{empty authenticationSessionId}">
  | 				<redirect view-id="/authenticationPage.xhtml" />
  | 			</rule>
  | 		</navigation>
  | 	</page>
  | 

I'd appreciate for any help given.

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

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



More information about the jboss-user mailing list