Aksel Willgert
Aksel Willgert

Reputation: 11557

Use JSF beans in Java EE 7

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?

Upvotes: 0

Views: 571

Answers (2)

Aksel Willgert
Aksel Willgert

Reputation: 11557

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:

Upvotes: 0

LightGuard
LightGuard

Reputation: 5378

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

Upvotes: 1

Related Questions