Monday, 26 December 2016

Search Container in Liferay 7

In Liferay, we can easily display records in proper tabular format with pagination using the Search Container tag of Liferay. I suggest seeing my previous post CRUD Operation in LiferayDXP
before learning SearchConatiner.

Here we will learn how to display all records of the Product table created in my previous post which includes three columns.
  1. productId
  2. productName
  3. productPrice

Wednesday, 21 December 2016

CRUD Operations in Liferay 7

Today we will see how to perform the CRUD operation in Liferay 7. I assume you know how to create mvc portlet module and servicebuilder module in Liferay.

Following are some simple steps to execute CRUD operation in LiferayDXP.

Step1 Create MVC portlet module with name ProductRegistration and Component class name ProductRegistrationPortlet and package name com.liferay.product.portlet.

Tuesday, 20 December 2016

Custom SQL in Liferay 7

Today we will see how to write custom sql query in liferay.


Liferay service builder generates basic basic CRUD method for single entity.But their are certain scenarios such as fetching data from multiple table, in such cases we have to use custom sql.


If you are not familiar with creating servicebuilder module please refer my blog on Creating ServiceBuilder in liferay 


Creating Service Builder in Liferay 7

We can create service builder module to perform various CRUD operation in liferay. This post includes creating and building service module in liferay 7.

In service module we just need to specify table structure in service.xml file and all methods for CRUD operation will generate automatically.

Today we will create basic service module with only one table i.e one entity using Liferay IDE

Create MVC Portlet in Liferay 7 using LiferayIDE

Liferay 7 has adopted OSGI standards.In OSGI everything we create is a module.For more information on OSGI visit my previous blog on OSGI.
  • In this blog I will explain how to create mvc portlet module using Liferay IDE.For information on setup and installing liferay portal (click here).

Monday, 19 December 2016

Deploying liferay 7(Gradle) module to tomcat

Their are 2 option available to deploy liferay module.

Option 1:Configure gradle.properties file available in liferay workspace.

OSGI Lifecycle

Since Liferay has adopted OSGI standards it is necessary for us to know basic's of OSGI.

OSGI-stands for  Open Services Gateway initiative.

OSGI is a Java framework for developing and deploying dynamic modular software applications. 

Liferay 7 Installation


Step 1 Download Liferay and Java 8 and Eclipse

Thursday, 15 December 2016

Access Gogo Shell in Liferay 7

To access Gogo shell your server must be running...

Their are two ways to access Gogo shell 

1st Option

We can open Gogo Shell using Liferay IDE or Eclipse simply by right clicking on server and clicking Open Gogo Shell