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 WUSIWUG Editor in our custom Portlet


In this blog we will see how to use WUSIWUG 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...

Monday, December 5, 2016

Connecting to Different Database in Liferay


We  already know how to create service builder in Liferay. When we use service builder all our tables goes to default database that is mention in portal-ext.properties or portal-setup-wizard.properties.

But sometimes we need to create tables in a separate database so that all liferay related tables are in default database and our custom tables in another database.So today we will see how to connect Liferay with 2 databases.

So lets start this step by step:-


Continue Reading...

Total Pageviews

Like Us on Facebook

Number Of Unique Visitor

Free counters!