1 Reply Latest reply on Feb 14, 2007 2:40 PM by gavin.king

    page.xml and restrict

    beligum

      Hi all,

      I'm trying to secure my application file-tree with pages.xml.
      My content (to be secured) resides in /main/*, but I'd like to 'flag' some files in this tree as publicly accessible, without removing them from /main/*

      Currently, this is my pages.xml :

      <page view-id="/main/*">
       <restrict>#{identity.loggedIn}</restrict>
      </page>
      <page view-id="/main/public.xhtml">
       <restrict>#{!identity.loggedIn}</restrict>
      </page>
      


      I've tried several options for the second restrict-content (null, empty, etc), but the page is always secured.
      Is there a way to override the initial wildcard (without restricting every single file)?

      Bram