Exceptions, errors, problems and issues encountered during java ee development. Of course, the same exception stack trace can often be caused by many problems. I want to keep track of at least some of the possible solutions.

Friday, May 30, 2008

Print mode bug in Liferay 5.0.1 RC

Liferay 5.0.1 RC has a bug that doesn't let you use the print portlet mode. Liferay 5.0.2 release is supposed to fix the problem (not sure when that's coming though.) In the meantime, the JIRA issue (http://support.liferay.com/browse/LEP-5673) provides this simple fix:

On your Liferay installation go to

\Liferay5.0.1\server\default\deploy\ROOT.war\html\portal\

And open this file: render_portlet.jsp. Replace

portletDisplay.setURLPrint(urlPrint.toString());

with:

portletDisplay.setURLPrint("javascript: location.href='"+urlPrint.toString()+"';");

No comments: