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

    Create and RenderResponse-Phase

    nimo stephan Master

      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?