I must say I LOVE the login-required attribute in pages.xml and tying that to a folder like secure.
Is there a role-required attribute to do the same thing like so
role-required="admin"
and then I can tie that to secure/admin so only admins can access the admin pages. This sure would cut down on all the typing with the @Restrict annotation.
thanks,
Dean
damn, I wish I could delete my post....was looking at the wrong docs.....finally found it....
<page view-id="/reports.xhtml"> <restrict>#{s:hasRole('admin')}</restrict> </page>