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

Saturday, September 30, 2017

Search Form with Search Container in Liferay


In the previous tutorial on  Liferay Search Form with Search Container we see how we can search data from a search container. We override DisplayTerm and Search Container classes. Today we will create the same thing but in a simple way. Before reading this blog it is highly recommended to read my previous blog on  Liferay Search Form with Search Container.

Continue Reading...

Saturday, September 23, 2017

Liferay Search Form with Search Container


We already know how to use Search Container in Liferay. Today we will create a search form that can search values from search container. For this we use <liferay-ui:search-form> tag. By using this we can apply basic as well as advance search.

Liferay use this in many places like when you go to web content section (Admin->Content)
Continue Reading...

Liferay Error : Unable to find model in Dynamic Query


We already know how to write dynamic query in Liferay. If we create Dynamic Query object in same portlet in which our service are then we can use :-


Continue Reading...

Thursday, September 21, 2017

Get Web Content/Journal Article Fields Data Programmatically using x:parse tag


We already know when we create web content using  Structues and Templates  then Liferay Stores the data in xml format in content column of journalArticle table .If we want this data in our java code we can use SAX Parser .

Today we will discuss how to get this data in our jsp by using <x:parse> tag.
Continue Reading...

Use Liferay Auto Fields


Today we will see how to use Liferay Auto Fields. We can create fields at run time by using this. So lets Start:-

Inside your jsp paste this:-

Continue Reading...

Wednesday, September 20, 2017

Input Move Boxes in Liferay


Today we will see how to use Input move boxes in liferay. This can be used as a multiple select box. So lets Start:-

First we need to use liferay-ui:input-move-boxes tag in our jsp:-

Continue Reading...

Sunday, September 10, 2017

How to import template from theme in Liferay?


We already know how to create web content using structure and template but Sometimes we create template in our theme and then import this in our web content template . So today we will discuss how to import template from theme.

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

Wednesday, August 30, 2017

How to Access Custom Services in Velocity(VM) files using Service Locator?


In the previous blog we see how to to access Liferay Services in Velocity(VM) files using Service Locator. In this blog we will see how to  to access Custom Services in Velocity(VM) files using Service Locator. 

Continue Reading...

Friday, August 18, 2017

How to Access Liferay Services in Velocity(VM) files using Service Locator?


Some time we need to access Liferay Services in our theme or Web content Templates. So today we will discuss how to access Liferay Services in our theme and templates. 

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

Saturday, June 17, 2017

Model Listener in Liferay 6.2


Today we will see how to create Model Listener in Liferay 6.2 .I write Listener for Web Content ie Journal Article .So when a Journal Article is created  we will do some processing. 

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

Saturday, May 20, 2017

Fetch Latest Version Journal Article or Web Content in Liferay


When you fetch JournalAricle on the basis of Structure it will give you all the articles and not the latest articles. So in this blog we will see how to fetch latest version of web content/ Journal Article in Liferay.


Continue Reading...

Friday, March 3, 2017

Liferay Custom JSON Web Services


Liferay give you JSON web services for its entities like groups, organization etc . You can see all those services by this URL http://localhost:8080/api/jsonws .

But today we will create our own Entity like Student and access the methods by URLs and get JSON response. So Lets start this step by step:-
Continue Reading...

Friday, February 17, 2017

Pagination Problem in Liferay Search Container


We already see in detail how Search Container work in Liferay. But consider a scenario.

Let we have 9 records and we display 4 records on each page. So basically we have :-
a)2 pages with 4 records on each page
b)3rd page(last page) with only one record.

Now we delete record from 3rd page so ideally after deleting it will go to second page as now there are only 8 records . But in Liferay it will go to first page. So lets resolve this.Before reading this it is recommended to read search container in detail
Continue Reading...

Friday, January 13, 2017

Testing with JUnit in Liferay


Today we will see how to write JUnit test cases in Liferay. This can be helpful for unit testing. I assume that you have some idea about JUnit. If you want to learn JUnit you may watch Unit Testing with JUnit video tutorials.

So lets start this step by step:-

Continue Reading...

Total Pageviews

Number Of Unique Visitor

Free counters!