[jboss-user] [JBoss Portal] - Re: Session objects in PageCustomizerInterceptor and jsp/ser

bvogt do-not-reply at jboss.com
Thu Nov 29 02:53:31 EST 2007


I got at least a workaround:

Portlets:
Needed to be derived from:
org.jboss.portlet.JBossPortlet
in order to access the objects by:
JBossRenderRequest.getControllerContext().getServerInvocation().getServerContext().getClientRequest().getSession().getAttribute(attributeName);

Custom ThemeTagHandler / Theme's index.jsp:
Change the objects visibility from session to request and pass it in custom PageCustomizerInterceptor by:
pageCommand.setAttribute(ControllerCommand.REQUEST_SCOPE,             attributeName, attributeValue);  
and retrieve the object in custom ThemeTagHandler:
((PageContext)getJspContext()).getRequest().getAttribute(attributeName);
or the theme's index.jsp:
request.getAttribute(attributeName);

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

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



More information about the jboss-user mailing list