8 Replies Latest reply on Aug 28, 2007 11:38 AM by Mohammad Norouzi

    @Startup and user session

    Mohammad Norouzi Novice

      Hi

      I have a Stateful session scoped component namely "userSettings". I want when user logged in its build method (annotated with @Create) being invoked.

      first I marked it with @Startup but when the pages are loading this component will load as well but at that time, there is no user logged in, so this throws an exception and after the user enters his username and password this component won't initialize for his session

      how can I make a component to be loaded just when a user is signing in? @Startup will load for any session even if no user signed in.