1 Reply Latest reply on Mar 10, 2010 10:17 PM by Shervin Asgari

    Login and injection

    Juan Ignacio Sánchez Lara Apprentice

      We're facing a problem with login and injection. In brief, after pressing login button, components are instantiated and injection resolved before observers are called.


      We have an @Observer( { "org.jboss.seam.security.loginSuccessful" }). It initializes some personal data which is used at many pages. You can login through home.seam flawlessly, but if you go directly into a page that depends upon a component which injects that personal data, after you press login you'll get an exception because injected value is null.


      As a workaround we're using @In(required = false), but that's not what we want, since it could lead into null values of basic data.