Entry entry = doc.getEntryById(id);
if (null == entry)
{
// FIXME: need to write this function
// Portlets ps = doc.getPortletsById(id);
result = new StringElement("not implemented - PortletElement");
}
else
{
Portlet p = PortletFactory.getPortlet( entry );
if (p != null)
{
result = p.getContent(rundata);
}
else
result = new StringElement("Error retrieving PortletElement");
}
}
}
catch (Exception e)
{
logger.error("Exception", e);
}
}
if (result == null)
{
result = new StringElement("Error fetching pane");
}
return result;
}