DateFormat df = DateFormat.getDateTimeInstance();
if ( portletName == null ) {
String message = "Could not find given entry ";
Log.error( message );
return new StringElement( message );
}
Portlet portlet = null;
try {
portlet = PortletFactory.getPortlet( portletName, "0" );
} catch (PortletException e) {
Log.error(e);
return new StringElement( e.getMessage() );
}
Table t = new Table();
t.addElement( this.getRow( "Portlet name: " + portlet.getName() ) );