Detailed structure of the Liferay portlet

Source: Internet
Author: User
Tags wrapper

A typical portlet should have the following structure:

Source code files:

Java source code is stored in the < project name >/DOCROOT/WEB-INF/SRC directory

Configuration file:

Configuration files are in the < project name >/docroot/web-inf directory, typically 4 profiles

Portlet.xml is a JSR-286-related configuration that acts as a deployment profile for a portlet

The remaining 3 configuration files are related to Liferay:

Liferay-display.xml file shows which category the Portlet is under in the Add menu

The Liferay-portlet.xml file shows what enhancements Liferay has made to JSR-286, such as configuring whether a portlet is instantiated, as shown in line 6th of the following code:

<liferay-portlet-app> <portlet> <portlet-name>clusternodeinfoportlet</portlet-na me> <icon>/icon.png</icon> <instanceable>false</instanceable>  

The Liferay-plugin-package.properties file is typically used to configure the jar packages that this portlet relies on, and the portlet is packaged into war.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.