Wednesday, June 15, 2022

Dynamic SessionErrors in Liferay 7.3

   

Today we will see how we can send error message from our controller. Here we set the error message in controller which is dynamic and view this on jsp with single tag.

So lets start this step by step :-


Continue Reading...

Tuesday, June 14, 2022

Spring RestTemplate Client in Liferay DXP (7.3)

     

Today we will see how we can call Rest API in Liferay by using Spring RestTemplate. We just need to add dependencies related to Spring and accordingly write our client.

So lets start this step by step :-


Continue Reading...

Create Application Start up Event in Liferay DXP (7.3)

    

Today we will see how we can create application start up events in Liferay 7.3 . By using this we can create our configuration on start up of your module. So we don't need to create Custom Fields, Structure, templates etc using Control Panel. As soon as module is deployed code will run automatically. 

So lets start this step by step :-


Continue Reading...

Monday, June 13, 2022

Create Custom Fields Programmatically in Liferay DXP(7.3)

   

Today we will see how we can create custom fields in Liferay DXP . In this example we will create 3 custom fields one contain String value , second contain Boolean value and third contain drop down . We also set the permissions of Custom Fields in the same example. I am creating custom fields for sites . But you can use the same process for users and others entities of Liferay. Here i am using Liferay 7.3.

So lets start this step by step :-


Continue Reading...

Saturday, June 11, 2022

ImageSelector in Custom Portlet

  

Today we will how we can include image selector in our custom portlet . Here we create a custom portlet where we provide a Choose button as soon as user click on choose button a pop up will open where he can select the images from document and media portlet . Here i am using Liferay 7.3.

So lets start this step by step :-


Continue Reading...

How to enable jQuery in Liferay DXP (7.3)

 


By Default in Liferay DXP jQuery is disable . But we can easily enable this using control panel. Here i am using Liferay 7.3.

Just Login with Admin and Go to control panel then system settings


Continue Reading...

Friday, June 10, 2022

Access Document and Media Files in Custom Portlet

  

Today we will discuss how we can display files which are stored in document and media portlet of Liferay.We also create download link so that user can download the files which are stored in document and media . Here i am using Liferay 7.3.

So lets start this step by step :-


Continue Reading...

Thursday, June 9, 2022

Read Excel file (xlsx) using Apache POI in Liferay 7/DXP


 

Today we will see how we can read excel file(.xlsx) using Apache POI .The main problem in this is POI dependencies .POI create problem with OSGI .So we add dependencies in gradle and include resources in bnd.Here i am using Liferay 7.3.

So lets start this step by step :-


Continue Reading...

Wednesday, June 8, 2022

JAX-RS Web Services with Spring in Liferay 7 (DXP)

 

We already know how to create Rest API in Liferay 7 (JAX-RS Web Services). Today we will see how we can use spring and add objects in Liferay databases. Here we will create a Rest service that will add data in Liferay database. Before reading this blog it is highly recommended to read how to create Rest API in Liferay 7 (JAX-RS Web Services). Here i am using Liferay 7.3.

So lets start this step by step :-


Continue Reading...

Creating Rest API in Liferay 7 (JAX-RS Web Services)

 

Today we will discuss how to create Rest Services in Liferay. By using JAX-RS we will create Rest Services that can be used by other applications. Here i am using Liferay 7.3.

So lets start this step by step :-


Continue Reading...

Total Pageviews

Number Of Unique Visitor

Free counters!