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

Stateless Bean do-not-reply at jboss.com
Fri Nov 16 08:44:14 EST 2007


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 execute="#{sessionAction.redirectIfLoggedIn}" />	
  | </page>
  | 

anonymous wrote : 
  | public void redirectIfLoggedIn() {
  |    try {
  |       if (identity.isLoggedIn()) {   
  |                                                                      facesContext.getExternalContext().redirect("/mlm/pages/system.xhtml");
  | 
  | } else {	
  |     		facesContext.getExternalContext().redirect("/mlm/home.xhtml");
  | 
  | 	    	}
  |     	} catch (Exception e) {	}
  |     }
  | 

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105467



More information about the jboss-user mailing list