super.doView(request, response);
return;
}
// get fragment column sizes
Fragment f = getFragment(request, false);
String fragmentColumnSizes = columnSizes;
String fragmentColumnSizesProperty = f.getProperty(Fragment.SIZES_PROPERTY_NAME);
if (fragmentColumnSizesProperty != null)
{
fragmentColumnSizes = fragmentColumnSizesProperty;
}
String [] fragmentColumnSizesArray = fragmentColumnSizes.split("\\,");
List fragmentColumnSizesList = new ArrayList(fragmentColumnSizesArray.length);
for (int i = 0; (i < fragmentColumnSizesArray.length); i++)
{
fragmentColumnSizesList.add(fragmentColumnSizesArray[i]);
}
// construct layout object
ColumnLayout layout;
try
{
layout = new ColumnLayout(numColumns, layoutType, f.getFragments(), fragmentColumnSizesArray);
layout.addLayoutEventListener(new PageManagerLayoutEventListener(pageManager, context.getPage(), layoutType));
}
catch (LayoutEventException e1)
{
throw new PortletException("Failed to build ColumnLayout "+e1.getMessage(), e1);
}
// invoke the JSP associated with this portlet
request.setAttribute("columnLayout", layout);
request.setAttribute("numberOfColumns", new Integer(numColumns));
request.setAttribute("decorationFactory", this.decorators);
request.setAttribute("columnSizes", fragmentColumnSizesList);
request.setAttribute("editing",editing);
request.setAttribute("fragmentNestingLevel",new Integer(getFragmentNestingLevel(requestPage,f.getId())));
super.doView(request, response);
request.removeAttribute("decorationFactory");
request.removeAttribute("columnLayout");
request.removeAttribute("numberOfColumns");
request.removeAttribute("columnSizes");