[jboss-user] [JBoss Seam] - Re: Seam security & user session...

2007-07-27 Thread Stateless Bean
Yes Shane, I do like you offer, this is easies way:)
I simply remove login form and add logout button.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068124#4068124

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068124
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam security & user session...

2007-07-26 Thread [EMAIL PROTECTED]
In general, I would just restrict the way the client interface is built to not 
display a login form if the user is already logged in.  The seamspace (and 
other examples) do this already, take a look at template.xhtml and home.xhtml 
in seamspace.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068076#4068076

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068076
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam security & user session...

2007-07-26 Thread jcg3
You can use the identity object to check if the user is logged in, get the user 
name, etc.

There is a method on identity to log out.

Within your JSF page you can simply refer to #{identity.username} and in your 
code you can do @In Identity identity;  (org.jboss.seam.security.Identity).

There are many examples of how this works in the seam examples.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068025#4068025

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068025
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user