else
{
request.setAttribute("layout", getFragment(request, false));
}
// now invoke the JSP associated with this portlet
JetspeedPowerTool jpt = new JetspeedPowerTool(request, response, getPortletConfig());
PortletPreferences prefs = request.getPreferences();
if (prefs != null)
{
String absViewPage = null;
try
{
if (maximized)
{
String viewPage = prefs.getValue(PARAM_MAX_PAGE, "maximized");
// TODO: Need to retreive layout.properties instead of hard-coding ".vm"
absViewPage = jpt.getTemplate(viewPage+"/"+JetspeedPowerTool.LAYOUT_TEMPLATE_TYPE+".vm",
JetspeedPowerTool.LAYOUT_TEMPLATE_TYPE).getAppRelativePath();
}
else
{
String viewPage = prefs.getValue(PARAM_VIEW_PAGE, "columns");
// TODO: Need to retreive layout.properties instead of hard-coding ".vm"
absViewPage = jpt.getTemplate(viewPage+"/"+JetspeedPowerTool.LAYOUT_TEMPLATE_TYPE+".vm",
JetspeedPowerTool.LAYOUT_TEMPLATE_TYPE).getAppRelativePath();
}
log.debug("Path to view page for LayoutPortlet "+absViewPage);
request.setAttribute(PARAM_VIEW_PAGE, absViewPage);
}