This content has been marked as final.
Show 1 reply
-
1. Re: Session objects in PageCustomizerInterceptor and jsp/ser
bvogt Nov 29, 2007 2:53 AM (in response to bvogt)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);