1 Reply Latest reply on Mar 28, 2007 11:19 PM by Gavin King

    Redirect in pages.xml using if condition

    Ging Ming Chan Newbie

      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.