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

How is a layout template rendered in Liferay?

We know that a portal page includes theme, a layout template, one or multiple portlets arranged in a grid-like column structure of the layout template. These three layers of abstraction control the look and feel of a portal page and how the portlet contents are arranged in the column layout. Now let's take a look at the code flow and explain how these components work together during a portal page rendering process.

The Main Servlet in Liferay Portal

Liferay Portal is implemented in Struts and includes a Main Servlet with servlet-class of com.liferay.portal.servlet.MainServlet as registered below in ${PORTAL_ROOT_HOME}/WEB-INF/web.xml file.

<servlet> <servlet-name>Main Servlet</servlet-name> <servlet-class>com.liferay.portal.servlet.MainServlet</servlet-class> ...

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