8 Replies Latest reply on Oct 11, 2011 5:02 AM by shane.bryzak

    Upgraded to 3.1.0Beta3, the ViewConfig does not work.

    hantsy

      I followed the JBossSeam310Beta3Released and upgraded my current project to 3.1.0Beta3, the ViewConfig which worked well in before application does not work now.


      @ViewConfig
      public interface SiorcViewConfig {
      
           static enum Pages {
      
                @FacesRedirect
                @UrlMapping(pattern = "/")
                @ViewPattern("/home.xhtml")
                @LoggedIn
                HOME,
      
                @FacesRedirect
                @UrlMapping(pattern = "/login")
                @ViewPattern("/login.xhtml")
                LOGIN,
      
                @FacesRedirect
                @UrlMapping(pattern = "/denied")
                @ViewPattern("/denied.xhtml")
                DENIED,
      
                @FacesRedirect
                @ViewPattern("/addressee/*")
                @LoggedIn
                ADDRESSEE,
      
      
                ......(some other config here)
      
      
                @FacesRedirect
                @ViewPattern("/*")
                @AccessDeniedView("/denied.xhtml")
                @LoginView("/login.xhtml")
                ALL;
      
           }
      
      }
      
      



      I want to protect all pages, except the login and denied view.


      Before when I browsed the home page, it redirect to the login view correctly. Now it does not work.


      Where is wrong, or I need extra configuration for the ViewConfig?