3 Replies Latest reply on Jul 9, 2008 7:05 AM by Sumeet

    Getting session in JSF backing bean

    Rob Summitt Newbie

      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?