Can @ManagedBean and @XxxScope be placed in a base class?
问题 I have two @ManagedBean (javax.faces.bean.ManagedBean), parent and child. The parent managed bean is not abstract because we have to give liberty to the developer to use the parent if enough or inherit it with a child that holds specifically funcionality. I have problems with the injections bean and the @PostConstruct annotated method in the parent bean. The following code is the only way I found it works. @ManagedBean(name = "myBean") @SessionScoped public class BaseBean implements