2 Replies Latest reply on Sep 12, 2007 1:35 PM by nayan j

    pages.xml question

    nayan j Newbie

      I need to redirect users to a specific page if an attribute in session is true. It does not matter what link the user clicks.. I wrote the following rule but it does not seem to work:

       <page view-id="*">
       <navigation>
       <rule if="#{identity.loggedIn and user.myattribute}">
       <begin-conversation join="true"/>
       <redirect view-id="/mypage.xhtml"/>
       </rule>
       </navigation>
       </page>
      


      Can anyone suggest how this should be done?