1 Reply Latest reply on Feb 18, 2007 10:39 PM by gavin.king

    Restricting pages in pages.xml

    thejavafreak

      I have pages with structure pattern as such:

      /department/home.xhtml
      /distributor/home.xhtml

      Now I want to secure this pages through pages.xml with this expression /**/* but it doesn't work. I've also tried /*/* .

      <page view-id="/**/*">
       <restrict />
      </page>
      


      For me this would save me alot of time rather than defining each pages with this expression:
      /department/*
      /distributor/*

      I also have nested structure as such:
      /order/purchase/home.xhtml
      If I secure it with this config:
      <page view-id="/order/purchase/*">
       <restrict />
      </page>
      


      It doesnt work as I must define the role in element
      <page view-id="/order/purchase/*">
       <restrict>#{s:hasRole('admin')}</restrict>
      </page>
      


      Have I missed out something here?