[jboss-user] [JBoss Seam] - Restricting pages in pages.xml

thejavafreak do-not-reply at jboss.com
Sun Feb 18 21:19:36 EST 2007


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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018655#4018655

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018655



More information about the jboss-user mailing list