[jboss-user] [JBoss Seam] - Newbie question: access session attribute from view
javri28
do-not-reply at jboss.com
Wed Aug 30 13:51:15 EDT 2006
Hi everybody!
I have one may ba stupid question, but I could't find any answer on it...
On my page I have to check if the user is logged in(let's say there should be shown different images for logged and not-logged user).
I have User component in session scope. During registration I'm doing common thing:
Contexts.getSessionContext().set("loggedIn", true);
The only condition that I have found for my "rendered" attributes on pages to check if the user is logged-in is #{user.userName != null}.
Is this the only way to do it on the page?
I just whant to be sure before I use it everywhere(not in many places, but it doesn't metter)
I hope I have explained a problem correctly.
Thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968447#3968447
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968447
More information about the jboss-user
mailing list