0 Replies Latest reply on Mar 23, 2009 3:15 PM by nimo22

    Create and RenderResponse-Phase

    nimo22

      I have this:


      @Name("sessionA")
      @Scope(SESSION)
      @Startup
      public class SessionA {
              
      
      @Create
      public void create()
      {
                      
       Iterator<Locale> l= FacesContext.getCurrentInstance().getApplication().getSupportedLocales();
      
      }
      }



      and get a NPE, so I wanna ask:


      Does a FacesContext-Instance exist in a Create-Method?