*/
public void render( ContentFragment fragment, RequestContext requestContext )
{
PortletWindow portletWindow;
ContentDispatcherCtrl dispatcherCtrl = getDispatcherCtrl(requestContext, true);
ContentDispatcher dispatcher = getDispatcher(requestContext, true);
HttpServletRequest servletRequest =null;
HttpServletResponse servletResponse = null;
try
{
portletWindow = getPortletWindow(fragment);
servletRequest = requestContext.getRequestForWindow(portletWindow);
servletResponse = dispatcherCtrl.getResponseForWindow(portletWindow, requestContext);
RenderingJob rJob = buildRenderingJob(fragment, servletRequest, servletResponse, requestContext);
workMonitor.process(rJob);
}
catch (Exception e1)
{
servletRequest = requestContext.getRequest();
servletResponse = dispatcherCtrl.getResponseForFragment(fragment, requestContext);
log.error("render() failed: " + e1.toString(), e1);
fragment.overrideRenderedContent(e1.toString());
// ObjectID oid = JetspeedObjectID.createFromString(fragment.getId());
// ((ContentDispatcherImpl) dispatcherCtrl).notify(oid);
}