[jboss-user] [JBoss Seam] - Re: Seam, security and session

2007-11-16 Thread Stateless Bean
[EMAIL PROTECTED] wrote : Use a page action on /home.xhtml to check login and issue a redirect using FacesManager if they are. Can u explain, or target me? page actions (u mean pages.xml) and u also write about FacesManager, but that 2 different ways. I think better way maybe is in pages.xml

[jboss-user] [JBoss Seam] - Re: Seam, security and session

2007-11-16 Thread Stateless Bean
I done as u said, but page doesn't work properly. All app properties names are not visible and other stuff. anonymous wrote : | #{messages['login.portal']} | #{messages['login.login']} | Here is my code | page view-id=/home.xhtml | action

[jboss-user] [JBoss Seam] - Re: Seam, security and session

2007-11-16 Thread [EMAIL PROTECTED]
Use a page action on /home.xhtml to check login and issue a redirect using FacesManager if they are. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4105372#4105372 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105372

[jboss-user] [JBoss Seam] - Re: Seam, security and session

2007-11-16 Thread [EMAIL PROTECTED]
page view-id=/home.xhtml | action execute=#{controller.redirectIfLoggedIn} public void redirectIfLoggedIn() { |// If logged in |FacesManager.instance().redirect(/secure/home.xhtml); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4105428#4105428

[jboss-user] [JBoss Seam] - Re: Seam, security and session

2007-11-16 Thread [EMAIL PROTECTED]
No you haven't, I used FacesManager. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4105477#4105477 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105477 ___ jboss-user mailing

[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=bbop=viewtopicp=4068124#4068124 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068124

[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

[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 :