1 Reply Latest reply on Feb 7, 2007 5:09 AM by Pete Muir

    Limit access to logged in users

    Michael Yuan Novice

      Hi,

      I want to limit a web page to logged in users only. But I do not want to use any roles. So, I am thinking using the following element in pages.xml:

      <page view-id="/foo.xhtml">
       <restrict>#{identity.loggedIn}</restrict>
      </page>
      


      Is it the correct / best way to do it? Thanks.

      cheers
      Michael