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?
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?
No. IIRC, the JSF managed beans are pretty much deprecated in JSF 2.2 (Java EE 7).
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: