[jboss-user] [JBoss Seam] - restricting access using pages.xml

dustismo do-not-reply at jboss.com
Thu Feb 1 16:32:36 EST 2007


Hi,

I am trying to restrict access to all files in /clients to logged in users.  I added the following pages.xml to no avail:


  | <!DOCTYPE pages PUBLIC
  |           "-//JBoss/Seam Pages Configuration DTD 1.1//EN"
  |           "http://jboss.com/products/seam/pages-1.1.dtd">
  | 
  | <pages no-conversation-view-id="/index.xhtml">
  |     <page view-id="/clients/*">   
  |     	<restrict>#{identity.loggedIn}</restrict>
  |      </page>
  | </pages>
  | 

nor does it work if I use a navigation rule (not sure if I did this right)


  | <pages no-conversation-view-id="/index.xhtml">
  | 
  |     <page view-id="/clients/*">    
  |     	<navigation>      
  |         <rule if="#{not identity.loggedIn}">
  |               <redirect view-id="/login.xhtml"/>
  |         </rule>
  |         </navigation>
  |      </page>
  | </pages>
  | 

I'd like the page to be bounced to /login.xhtml if the user is not logged in.
Is there some other configuration I need to do to get the pages.xml to work?

thanks,
Dustin

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

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



More information about the jboss-user mailing list