super.render(request, response);
}
private Context createPortletVelocityContext(RenderRequest request, RenderResponse response)
{
Context ctx = new VelocityContext();
request.setAttribute(PORTLET_BRIDGE_CONTEXT, ctx);
// PLT.22
ctx.put("renderRequest", request);
ctx.put("renderResponse", response);
ctx.put("portletConfig", getPortletConfig());
// constants
ctx.put("STATE_NORMAL", WindowState.NORMAL);
ctx.put("STATE_MAX", WindowState.MAXIMIZED);
ctx.put("STATE_MIN", WindowState.MINIMIZED);
ctx.put("MODE_VIEW", PortletMode.VIEW);
ctx.put("MODE_EDIT", PortletMode.EDIT);
ctx.put("MODE_HELP", PortletMode.HELP);
ctx.put("USER_INFO", PortletRequest.USER_INFO);
return ctx;
}