One way of content generation is to copy, paste, and update. Liferay portal is a mature web application framework. When you are developing a custom portlet, you can almost always copy some code snippets from the existing portlets—this saves time.
When you copy Liferay's code, you are unconsciously following Liferay's coding convention, which is a good practice: Follow the coding style of the existing Liferay code.
Here are some UI coding conventions that we can follow on a Liferay portal project.
.jspextension; for JSP files included in JSP files, use the
.jspfextension. Here is an example:
<%@ include file="/html/portlet/journal/article_search_results.jspf" %>