This content has been marked as final.
Show 3 replies
-
1. Re: Getting session in JSF backing bean
shimonl97 Dec 25, 2007 2:20 AM (in response to rastababy)Cast it to PortletSession you can get the http session from portalContext
-
2. Re: Getting session in JSF backing bean
rastababy Jan 3, 2008 12:09 AM (in response to rastababy)Got it! Thanks!
-
3. Re: Getting session in JSF backing bean
sumeet.singh Jul 9, 2008 7:05 AM (in response to rastababy)hi guys,
i want to create httpSession object in the my backing bean...
HttpSession httpSession = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(true);
but the above line gives an error:
ClassCastException: com.sun.faces.portlet.PortletSessionWrapper
then i cast the above to PortletSession but still my problem is to get httpSession object
but according to the previous posts, how can i get httpSession from portalContext...
can you please send the exact syntax???