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