I have a simple seam project created in Eclipse.All my web pages have extension xhtml and I access each of them by typing page_name.seam.I would like to restrict access to every other page other than login page if the user is not logged in.I tried to use <c:if> tag but it didn't work.Other c: tags won't work either.Can anyone tell me how to implement this login check?Thanks
I've added identity attribute in my LoginBean class and in method that is invoked when user clicks on the submit button there is line
identity.addRole("logged").This method is registered in components.xml.Your tip about restriction is used in pages.xml but but I always get rejected no matter what username I use.
I could not find any property of identity in the Variables tab in the debug mode that could show if the role is set or not.This is the managed bean.I hope it can help you so you can help me
my fault...i did not noticed it because of the the background.......however i recommend to use cammel case like registerBean...of course this is not the problem here but it's good for better practices:)