0

I read this answer on JSF backing bean structure (best practices) and this article about the same subject and I'm really confused.

In the answer and the article, model-beans are session scoped but the javax.enterprise.inject.Model @Model annotation is request scoped.

In the documentaion it says:

The built-in stereotype intended for use with beans that define the model layer of an MVC web application architecture such as JSF.

I see this as a contradiction.

What is the real use of @Model and why it's @RequestScoped? what should I use for model-beans and is the referenced answer still apply?

Kukeltje
  • 12,223
  • 4
  • 24
  • 47
alibttb
  • 526
  • 4
  • 19

0 Answers0