Classes of javax.faces.bean are gonna be deprecated - a notification issued by NetBeans IDE 8.0

北城余情 提交于 2019-12-12 13:02:45

问题


I'm using NetBeans IDE 8.0. The IDE issues a notification as shown in the following snap shot.

Classes of javax.faces.bean are gonna be deprecated

Is there any reason for this notification, may be the classes from the specified package are going to be deprecated shortly?

My application uses,

  • Mojarra 2.2.6
  • PrimeFaces 4.0
  • PrimeFaces Extension 1.1.0
  • GlassFish Server 4.0
  • OmniFaces 1.6.3

and other related components.


回答1:


Since JavaEE 7, JSF favors CDI over Managed bean. That's why javax.faces.bean will eventually be deprecated but it's gonna be slowwwww.

FYI:

  • You should not have any other @ManagedBean beside @Named.


来源:https://stackoverflow.com/questions/23116555/classes-of-javax-faces-bean-are-gonna-be-deprecated-a-notification-issued-by-n

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!