Useful tips

What is the life cycle of a portlet?

What is the life cycle of a portlet?

This portlet life cycle method has important role in implementing event based inter portlet communication (IPC). As soon as process event method is completed the portlet container invokes render method. Called by the portlet container to allow the portlet to generate the resource content based on its current state.

What is a portlet in Liferay?

Web apps in Liferay DXP are called portlets. Like many web apps, portlets process requests and generate responses. In the response, the portlet returns content (e.g. HTML, XHTML) for display in browsers. Another difference is that portlets run only in a portal server, like the one in Liferay DXP.

How do you make a portlet in Liferay?

Creating a Liferay MVC Portlet in Liferay IDE

  1. Go to File → New → Liferay Plugin Project.
  2. Fill in the Project name and Display name.
  3. Leave the Use default location checkbox checked.
  4. Select the Ant (liferay-plugins-sdk) option for your build type.
  5. Your configured SDK and Liferay Runtime should already be selected.

What is MVC portlet in Liferay?

MVC Portlet applications are web modules containing at least one portlet class that’s registered in Liferay’s runtime environment as a component. Web modules describe themselves using standard OSGi metadata and can use any build environment.

How to create MVC portlet in Liferay 7?

The service will be available to the mvc portlet. If the editor still complain about the dependency you can right click to the project -> gradle -> refreash gradle project to refreash the project. When you deploy the project, remember to deploy 3 jars for api, service and mvc portlet.

What is the change in Liferay IDE 3?

Liferay IDE 3 has massive change regarding to Liferay 7.0 (Liferay DXP). One of the change is it streamlines the creation of OSGi module portlet by utilizing Liferay Blade tool, gradle elipse plugin and bnd tool.

How to create a Liferay workspace with IDE 3?

With Liferay IDE 3 it’s quite easy! First we need to create a Liferay Space project. A Liferay Workspace is a project container for Liferay porjects, within the Liferay workspace, we can develop and manage Liferay plugins.

How to deploy service builder in Liferay 7?

If the editor still complain about the dependency you can right click to the project -> gradle -> refreash gradle project to refreash the project. When you deploy the project, remember to deploy 3 jars for api, service and mvc portlet. You can download an example project here.