[jboss-dev-forums] [Design of JBoss Portal] - How to Signout from MyFacesGenericportlet

npkphilips do-not-reply at jboss.com
Fri Jan 26 15:28:10 EST 2007


I'm trying to write my own userPortlet. It must be jsf portlet. I am registering users using usermodule and also store my specific registartion information i my Databese table. evrything works fine. i have only problems with logout. I have in my jsf managed bean:
public void logout(ActionEvent event){
  | 	ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();
  | 	JBossActionResponse respone = (JBossActionResponse) context.getResponse();
  | 	respone.signOut();
  | 	}

and call it from jsf page:
<h:commandLink value="logout" actionListener="#{bean.logout}" ></h:commandLink>

response.signOut create errors.
 
registration process uses jsf validation and converters so i don't wont to convert portlet into normal portlet. How can i logout from jsf portlet? When and how can I acces actionResponse from jsf portlet. 

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

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



More information about the jboss-dev-forums mailing list