Spring JSF integration: how to manage a bean and inject a Spring component/service?
@ManagedBean vs @Controller/@Component First of all, you should choose one framework to manage your beans. You should choose either JSF or Spring (or CDI) to manage your beans. Whilst the following works, it is fundamentally wrong: @ManagedBean // JSF-managed. @Controller // Spring-managed (same applies to @Component) public class BadBean {} You end up with two … Read more