0

In Java EE 6 one of the reasons I stuck with the @ManagedBean was @ViewScoped. Now in Java EE 7 this is available for @Named beans also.

Will I miss out on anything if going with @Named in new apps?

Arjan Tijms
  • 37,782
  • 12
  • 108
  • 140
Aksel Willgert
  • 11,367
  • 5
  • 53
  • 74

2 Answers2

1

No. IIRC, the JSF managed beans are pretty much deprecated in JSF 2.2 (Java EE 7).

LightGuard
  • 5,298
  • 19
  • 19
  • They are indeed effectively deprecated. Unfortunately no 'official' deprecation has been done yet, but the spec lead did mention the intention was there. – Arjan Tijms Sep 29 '13 at 07:54
0

In blog post "You should not have any other @ManagedBean beside @Named." Markus Eisele states:

The drawback is, you will probably lose the ability to run on very lightweight Java appserver which do not conform to one of the defined profiles and can't provide DI/CDI features.

Other than that i did not find any arguments to stick with @ManagedBean

which also is pretty much stated in Pascal's answer here:

Community
  • 1
  • 1
Aksel Willgert
  • 11,367
  • 5
  • 53
  • 74