0 Replies Latest reply on Dec 21, 2011 4:21 AM by baecks

    Faces page flow - login - guidance

    baecks

      Hello,


      I have set up my app using the seam 3 security and faces modules to provide authentication/authorization. I defined the interface with the @ViewConfig annotation, applied the other annotations to the enums etc:


      @ViewConfig
      public interface Pages {
              static enum Pages1 {
                      //@FacesRedirect
                      @ViewPattern("/app/*")
                      // @AccessDeniedView("/denied.xhtml")
                      @LoginView("/login.xhtml")
                      @User
                      ALL;
              }



      When browsing to /app/home.seam, i get redirected to the login page. After loggin in (successful completion of the authenticator method), I remain on the login page. Browsing to /app/home.seam again, results in redirection to the login page.


      Does anybody know what could be wrong here?


      The more general question is: how to properly handling page flows in SEAM 3/JSF2. pages.xml is apparently not supported anymore in combination with facelets.


      Thanks,
      Sven.