5 Replies Latest reply on Feb 12, 2009 12:14 PM by Bob Mauranne

    Problem with @In attribute with required=true but null

    Bob Mauranne Newbie


      I have a problem using a component in scope APPLICATION with @startup into a component in scope PAGE

      public class ApplicationContextBO implements ApplicationContextBS {

      public class ItemGeneratorBO implements ItemGeneratorBS {
           @In(scope = ScopeType.APPLICATION, value = "applicationContextBO", required = true)
           private ApplicationContextBS applicationContextBS;
           public void populate() {
                items = applicationContextBS.getItems();

      I don't have an exception saying that the @in value is null, but when i call populate, i get a nullpointerexception : the 'applicationContextBS' attribute is null !

      How is it possible ? What can i do ?

      Thanks for helping. I hope I was clear enough.