I have noticed that I can get away with using the @RequestScoped
annotation from both @javax.enterprise.context.RequestScoped
and @javax.faces.bean.RequestScoped
.
In the one scenario the faces version seem to work and in the other the context version.
What I want to know is, which is the preferred / recommended?
I am using PrimeFaces framework and only later in my development realized I could use @ViewScoped
in most cases.