[jboss-user] [JBoss Portal] - Getting session in JSF backing bean

RastaBaby do-not-reply at jboss.com
Mon Dec 24 15:15:44 EST 2007


Having trouble getting session context in my backing bean.  The following code is generating a:

Caused by: java.lang.ClassCastException:com.sun.faces.portlet.PortletSessionWrapper


  | HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);
  | 

I'm using v1.2 of the portletbridge and Jboss Portal 2.6.3

Should I be casting the getsession to something other than HttpSession?



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

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



More information about the jboss-user mailing list