evaluatePortletId();
// Retrieve the portlet window config for the evaluated portlet ID.
ServletContext servletContext = pageContext.getServletContext();
PortletWindowConfig windowConfig =
PortletWindowConfig.fromId(evaluatedPortletId);
if (LOG.isDebugEnabled()) {
LOG.debug("Rendering Portlet Window: " + windowConfig);
}
// Retrieve the current portal URL.
PortalRequestContext portalEnv = PortalRequestContext.getContext(
(HttpServletRequest) pageContext.getRequest());
PortalURL portalURL = portalEnv.getRequestedPortalURL();
// Retrieve the portlet container from servlet context.
PortletContainer container = (PortletContainer)
servletContext.getAttribute(AttributeKeys.PORTLET_CONTAINER);
// Create the portlet window to render.
PortletWindow window = null;
try {
window = new PortletWindowImpl(container, windowConfig, portalURL);
} catch(RuntimeException e) // FIXME: Prose a change to anything else, handle it.
{
if (LOG.isDebugEnabled()) {
LOG.debug("The portlet " + windowConfig.getPortletName() + " is not available. Is already deployed?");
}
}
// Create portal servlet response to wrap the original
// HTTP servlet response.