1 2 Previous Next 15 Replies Latest reply on Dec 14, 2013 12:07 PM by Christophe CARVALHO

    Seam Faces @ViewConfig: @LoggedIn for everything but login page

    Miguel Z Newbie

      Is there a way to apply @LoggedIn for everything but the login page itself using the wildcard operator?


      The following does NOT WORK:



      @ViewConfig
      public interface Pages {
           
          static enum Pages1 {
                
           @FacesRedirect
               @ViewPattern("/login.xhtml")
              LOGIN,
              
              
              @FacesRedirect
              @ViewPattern("/*")
           @LoggedIn
              @LoginView("/login.xhtml")
              ALL;
              
          }
          
      }





      I thought about introducing a prefix for the restricted pages but only if there is no smarter solution...

        1 2 Previous Next