I am using Java EE 6 on jboss eap 6 and my JSF beans is annotated as follows: @ManagedBean @ViewScoped (both from javax.faces.bean package)
However, they are also CDI beans (default constructor, using @Inject @PreDestroy, etc.). I read all the time that you cannot mix these annotations (JSF and CDI), but it seems to work fine: Injections work, preDestroy is called when the view changes, etc.). Am I missing something? What is the problem? Why not use?
htft source share