问题
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