3 Replies Latest reply on May 12, 2009 6:19 PM by Ronald van Kuijk

    wildcard for view-id in pages.xml?

    Jaime Martin Apprentice

      I would like a permission restriction to be applied to all pages that start with Foo and end with View, so for instance FooAView.xhtml, FooBahView.xhtml would be restricted
      In security.drl file this works handy

      c: PermissionCheck(name == "/Foo*View.xhtml")

      But in pages.xml I need to define this:

          <page view-id="/FooBahView.xhtml">
          <page view-id="/FooAView.xhtml">

      I have tried this:

          <page view-id="/Foo*View.xhtml">

      but it does NOT work. is there a wildcard or expression for that?
      thanks in advance!