JSF-2.3 not finding my @Named CDI-1.2 managed bean

后端 未结 1 686
悲&欢浪女
悲&欢浪女 2020-12-11 10:28

Having recently upgraded to JSF 2.3 from 2.2, I noticed that @ManagedBean was deprecated, and after some research found that I should be using CDI-1.2 managed beans and the

相关标签:
1条回答
  • 2020-12-11 10:50

    As Gas pointed out, the issue was that the inbuilt CDI feature in WAS does not work with an external JSF library.

    See my post on IBM support page which confirms this.

    A way to still make use of web sockets using JSF-2.2 is to use the Javax.websocket package as @Gas pointed out. However the limitation of this web socket implementation is that it is nowhere near as easy to send data contained in a SessionScoped ManagedBean to the client of that session only as it would have been using f:websocket from JSF-2.3 as I would have liked to do.

    0 讨论(0)
提交回复
热议问题