JSF Scopes and Beans

19 views Asked by At

I am having hard time understanding when and where to use scopes. I read through a lot on google, and I know what sessionscope, requestscope and all other scopes. But not clear enough in which type of class it should have sessionscope or request scope?

Once the user logs in with loginBean (session scoped) any other beans further, I am using after user logged-in should be in request scope or session scope?

If I have any logic validating, if user is in session or not and accessing other business login (that invoked by request from client browser), does it have to be in session scope or request scope.

I read this: http://balusc.blogspot.com/2011/09/communication-in-jsf-20.html#ManagedBeanScopes

and still lots of confusion in where exactly to use :(

0

There are 0 answers