Showing posts with label Liferay Basic. Show all posts
Showing posts with label Liferay Basic. Show all posts

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...

Friday, June 29, 2018

Validation in WYSIWUG Editor in Liferay


We already know how to Create WYSIWYG editor in our custom portlet.For this we create a hidden field with same name as our editor and use aui:validator on that field.

Continue Reading...

Thursday, November 2, 2017

Multiple ActionURL Call on Click of Buttons in Liferay


We already know how to submit a form in Liferay. Normally we create a Form with a submit button and in Form action we pass actionURL .

When we click the submit button the form is submitted and call the process action method. But sometimes we need to call various action methods on clicking of simple buttons. So today we will discuss this in detail.

So lets start this Step by Step:-
Continue Reading...

Tuesday, October 17, 2017

Upload / Download Files in Liferay


We already know how to upload file in document and media  portlet. Today we will see how to upload a file in local machine . I created a folder on my desktop with name textdata. When we upload a file it will save in this folder . Here i also check that file must be a text file if you upload a pdf or jpeg it will give error.

So lets start this Step by Step:-
Continue Reading...

Wednesday, June 28, 2017

Liferay Portlet URL in JavaScript


Today we will see how create Portlet URL in JavaScript. Some time we have a situation in which we don't want to submit a form but need to send the values of fields from view to controller. In this post we create a text box in which we fill the value and get this value in our controller without submitting any form.

So lets start this Step by Step:-
Continue Reading...

Sunday, May 21, 2017

Use WYSIWUG Editor in our custom Portlet


In this blog we will see how to use WYSIWUG Editor in our custom portlet. So i create a simple portlet and load some default content in editor.You can change the content and click submit and the content will display on Console.
Continue Reading...

Friday, November 25, 2016

Friendly URL in Liferay

We already know how to create URL in Liferay. As you can see the URL created by liferay is very big and not readable. What if we can short this URL and make it human readable. Friendly URL is used to create human readable URLs. So before reading this blog it is highly recommended to read my blog on explanation of Liferay URLs. So lets start this step by step:-


Continue Reading...

Thursday, November 10, 2016

Creation of Portlet URL in Java

We  already know how to create Liferay URL in jsp file.Today we will discuss how to Create Portlet URLs in Java file or in we can say in Controller . Here we create a simple actionURL in our doview method and than call processAction by using it.So lets start this step by step:-

Continue Reading...

Tuesday, October 18, 2016

Explanation in LiferayURL


Today we will discuss detail explanation of portlet URLs in Liferay. Here we create a portlet and on jsp we create a actionURL and a renderURL and than check the URL . So lets start this step by step:-

Continue Reading...

Friday, October 7, 2016

Window States in Liferay


Today we will discuss Window States in Liferay. Their are basically 3 states :-

1)Normal
2)Maximized
3)Minimized

So lets start this step by step:-
Continue Reading...

Thursday, October 6, 2016

Instanceable vs Non- Instanceable portlet in Liferay


Today we will discuss the difference between Instanceable vs Non- Instanceable portlet in Liferay. 

Instanceable :- If Portlet is instanceable then we can add the portlet more than once on same page.

Non-Instanceable :-  If Portlet is non-instanceable then we can add the portlet only once on a page.

So lets discuss this in detail step by step:-

Continue Reading...

Wednesday, October 5, 2016

Developing a MVCPortlet with Multiple Render Methods in Liferay


In the previous blog Developing a MVCPortlet with Multiple Actions in Liferay  we see how we can handle multiple action methods in a single portlet. Today we will discuss how to develop a MVCPortlet with multiple render methods in Liferay. Here we create a portlet that contain 4 render methods that will redirect to different jsps that contain simple messages.So lets start this step by step:-

Continue Reading...

Tuesday, October 4, 2016

Developing a MVCPortlet with Multiple Actions in Liferay

Today we will discuss how to develop a MVCPortlet with multiple action methods in Liferay. Here we create a portlet that contain two action methods with simple message.So lets start this step by step:-

Continue Reading...

Saturday, August 20, 2016

Customize Validation message in Liferay

In the previous tutorial we provide server side validation in liferay.
Today we will customize the error message that is generated by liferay ui tags.So basically we provide our custom css to the error messages. We convert this:-
Continue Reading...

Monday, August 15, 2016

Validation in Liferay using liferay-ui tags

Today we will discuss server side validation in Liferay. Here we create a simple form with fields like First name, Last name, email and phone.If there is some error then we show error messages otherwise print Success message on console.For validation we use Validator class and <liferay-ui> tags. So lets start this Step by Step:-
Continue Reading...

Tuesday, June 7, 2016

Logger in Liferay


Today we will see how to apply logger in our custom class. Here we create a custom class and add logger to it and then see how to set log level in liferay. 

So lets start this Step by Step:-
Continue Reading...

Friday, November 27, 2015

Java Portlet Specification (JSR 168 vs JSR 286)


Initially portal vendors had their own portlet frameworks but the problem is those portlets are specific to portal Server and cannot be deployed to another server.So their is specification or we can say Standards for portlet development. By using those standards you can write a portlet which can be run on all compliant portlet Containers.

Continue Reading...

Database Migration From Liferay 6.1 to Liferay 6.2


Today we will discuss how to migrate database (users, roles,pages, webcontent etc) from Liferay 6.1 to Liferay 6.2. I assume that you already installed Liferay 6.1 and created pages , roles and user. The name of the database we are using for liferay 6.1 is named as liferay6.1db.

So lets start this step by step:-

Continue Reading...

Wednesday, October 28, 2015

Quartz Scheduler in Liferay


Today we will discuss about Schedular in Liferay. Sometime we have a situation in which we have to perform a task repeatedly after a certain period of time.Ex- Send a mail every week.

Liferay provide a simple way to achieve this.We create schedular class and provide entry of timing in liferay-portlet.xml. Time for schedular can be define by 3 ways:-
Continue Reading...

Friday, October 23, 2015

Send Redirect in Liferay


Today we will discuss how to redirect from a portlet to another portlet which are placed on some other page. For this we need two things:-

1)Portlet Layout Id(plid)
We need the plid of the page where we want to redirect.We can get the plid by the page name as:-
Continue Reading...

Total Pageviews

Number Of Unique Visitor

Free counters!