O'Reilly logo

Liferay User Interface Development by Frank Yu, Xinsheng Chen, Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

PDF and Excel reports

If you can use a portlet to generate a PDF or an Excel file, it will give your users another UI experience. PDF and Excel files are often used as reports in Web applications. The feature of PDF file generation may come in handy sometimes a future client may ask for that.

Using a portlet to generate PDF files became possible with the adoption of the JSR 286 Specification (JSR 286). Prior to JSR 286, PDF files were generated with servlets, even in Liferay portal. The JSR 286 Specification adds a resource URL into the portlet. This URL allows you to generate text, HTML, binary files and images into a portal page, without any customization from themes.

Based on the existing code in the uisix portlet, we implement the PDF and Excel ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required