{
logger.info("portletName:" + portletName);
logger.info("ID:" + "p" + getController().getComponentContentId());
logger.info("action:" + action);
PortletWindowIG pw = getPortalController().getPortletWindow(portletName, "p" + getController().getComponentContentId());
pw.setParameter("action", action);
Iterator<String> parametersIterator = parameters.keySet().iterator();
while(parametersIterator.hasNext())
{
String parameterName = parametersIterator.next();
pw.setParameter(parameterName, parameters.get(parameterName));
}
Iterator<String> attributesIterator = attributes.keySet().iterator();
while(attributesIterator.hasNext())
{
String attributeName = attributesIterator.next();
pw.setAttribute(attributeName, attributes.get(attributeName));
}
produceResult("" + pw.render());
}
catch (Exception e)
{
produceResult("Error in portlet:" + e.getMessage());
}