问题
I have an JSF app running on WildFly 10 and Primefaces 6.2 and Omnifaces 2.6.2.
My Beans are managed by Spring like this:
@Controller
@Scope("session")
public class CompanySelectionController implements Serializable {
I'm trying to implement Omnifaces WebSockets However when I try to inject PushContext like below:
@Inject @Push
private PushContext someChannel;
it says "No qualifying bean of type [org.omnifaces.cdi.PushContext]"
What should I do in this case?
来源:https://stackoverflow.com/questions/49306548/inject-omnifaces-pushcontext-in-a-bean-managed-by-spring