jsf - What is the difference between @Scope("session") and @SessionScoped -


i following this tutorial.

it uses @scope("session") , @sessionscoped in different implementations.

what differences?

it explained in tutorial:

mixed use of both jsf , spring annotations working fine, weird , duplicated – @component , @managedbean together. actually, can uses single @component, see following new version, it’s pure spring, , works!

so @sessionscoped jsf solution. , @scope("session") pure spring solution.

using @sessionscoped make application more portable, when example want switch java ee. using spring-di gives more consistent implementation.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -