将不推荐使用javax.faces.bean的类-NetBeans IDE 8.0发出的通知 [英] Classes of javax.faces.bean are gonna be deprecated - a notification issued by NetBeans IDE 8.0

查看:166
本文介绍了将不推荐使用javax.faces.bean的类-NetBeans IDE 8.0发出的通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用NetBeans IDE 8.0 . IDE发出通知,如以下快照所示.

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

不推荐使用javax.faces.bean类

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?

我的应用程序使用

  • Mojarra 2.2.6
  • PrimeFaces 4.0
  • PrimeFaces扩展程序1.1.0
  • GlassFish Server 4.0
  • OmniFaces 1.6.3

和其他相关组件.

推荐答案

从JavaEE 7开始,JSF比托管bean更青睐CDI.这就是javax.faces.bean最终会被弃用的原因,但是它将变得很慢.

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.

仅供参考:

这篇关于将不推荐使用javax.faces.bean的类-NetBeans IDE 8.0发出的通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆