1 Reply Latest reply on Jul 18, 2007 8:09 PM by Shane Bryzak

    Restrict everything except login page

    Nade Andrews Newbie

      Hi, this should be straightforward but I can't figure out a simple way to do it.

      I want to restrict all my xhtml pages to users of a certain role, except the login page (obviously). Is there anyway to override the restrict that I have for view-id="*".

      If using the pages.xml below trying to access the login page throws a NotLoggedInException

      Seam 1.2.1

      <pages login-view-id="/login.xhtml">
       <page view-id="/login.xhtml">
       <navigation from-action="#{identity.login}">
       <rule if-outcome="loggedIn">
       <redirect view-id="/search.xhtml"/>
       <page view-id="*" login-required="true">
       <navigation from-action="#{identity.logout}">
       <redirect view-id="/login.xhtml" />