2 Replies Latest reply on Jan 4, 2012 4:02 AM by lostiniceland

    JSF2 using CDI on AS 7 not working

    lostiniceland Newbie

      Hello everyone,


      I am trying to follow Adam Biens example on AS 7 but it seems that CDI isnt working for JSF2. Running the helloworld-examples I can see that it works for a simple servlet but when I try to call a simple JSF ManagedBean which is annotated with @Named the EL is not able to find the related object (thus printing to result). When I change the annotation with @ManagedBean it works.


      I am following the Maven-Setup used in the example, just addind JSF-capabilities but even when using @ManagedBean then the following injections (using @Inject) arent working either (giving me NullPointerExceptions).


      Can anyone explain what might be going on here? I am running the latest release (CR1). I think I must have done something wrong but just cant see it.