Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

enter image description here

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.

like image 669
Tiny Avatar asked Mar 20 '23 20:03

Tiny


1 Answers

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.
like image 141
Mr.J4mes Avatar answered Apr 06 '23 02:04

Mr.J4mes