I have a problem. I want to prevent a user from accessing a page without login in jsf2. When a user directly write restricted page url into browser, s/he should not see the
have you tried writing a filter... you can intercept all calls check if the user has access to a page if not you can redirect the user to the login page...