This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 223874

Summary: Hints for JSF2.2 project that javax.faces.bean classes are deprecated, use the CDI ones
Product: javaee Reporter: Martin Fousek <marfous>
Component: JSFAssignee: Martin Fousek <marfous>
Status: RESOLVED FIXED    
Severity: normal CC: dkonecny, pjiricka
Priority: P2    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Martin Fousek 2012-12-15 14:19:03 UTC
According to JSF2.2 spec. (public review) in the chapter 5.4:
The annotations in the package javax.faces.bean will be deprecated in a version of the JSF specification after 2.2. Therefore, developers are strongly recommended avoid using those annotations and instead use the ones from Java EE 6.

It means that developers should prefer CDI and EE6 annotations prior to JSF annotations. So we should implement hint which complains about that and enables possibility to switch to not-JSF annotations.

BTW, firstly should be check that CDI is integrated enough, see issue #215703 and issue #203986.
Comment 1 David Konecny 2012-12-16 20:24:49 UTC
I've added JSF.1 to the http://wiki.netbeans.org/JavaEE7 and also EE.6.
Comment 2 Martin Fousek 2013-03-08 17:32:37 UTC
The hint was introduced by the web-main #38a4af0873e3.

There is missing Fix for converting faces annotation to CDI or JavaEE ones - I'll take a look on that next week if it will be possible or it will remain for NB8.0.
Comment 3 Martin Fousek 2013-10-25 07:53:00 UTC
Hints made manageable from NetBeans Options in web-main #a0464aedb1a0.
Comment 4 Martin Fousek 2013-10-29 15:19:58 UTC
Rewrite of possible APIs to not-deprecated one done in web-main #f7315afc267f.