Hi I have a requirement to set an attribute in PortletSession in JSF portlet. How can I get portletSession instance in PageCodeBase ? I tried, PortletRequest portletRequest=(PortletRequest)getFacesContext().getExternalContext().getRequest(); PortletSession session = portletRequest.getPortletSession();
In this line : portletRequest=(PortletRequest)getFacesContext().getExternalContext().getRequest(); But the Object we are getting here can not be Type casted to Portlet request. So its throwing exception.
Is there any alternative to get PortletSession in in PageCodeBase?
-Thanks in advance
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads