[jboss-user] [JBoss Portal] - Setting session Map Parameter

jstuck do-not-reply at jboss.com
Sat Oct 21 22:21:04 EDT 2006


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


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

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



More information about the jboss-user mailing list