0 Replies Latest reply on Oct 21, 2006 10:20 PM by jstuck

    Setting session Map Parameter

    jstuck

      Hello All:

      I have something I have been struggling with for a few hours now. I have a portlet created which is bridged to JSF via the MyFacesGenericPortlet. When outside of the portlet environment, I can set a bean for a JSP page to use using syntax similar to the following:

      FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("BeanNameUsedInJSP", BeanObject);

      Inside of the portal environment, I receive the following error:

      java.lang.UnsupportedOperationException: Cannot set PortletRequest Parameter

      Is it possible to initialize a bean and place it into the session so that a resulting JSP page can utilize/display the bean's properties?

      Thanks for your help.

      Jeff