Sunday, November 29, 2015

Login in Liferay with Facebook Account


In most of the websites you see that their is a option by which you can login with your facebook credentials. Today we will achieve this Login Functionality with Facebook in our Liferay. This consists of two Major Steps.

1)Create Facebook App
2)Integrate this App with Liferay.

Continue Reading...

Saturday, November 28, 2015

Custom Field/Attribute or Expando in Liferay Programmatically


We already know how to create custom field using control panel . 
Lets consider a scenario we create 40 custom fields in our local server using control panel . When i deployed my application to production server we need to create all custom fields again in production server . What if as soon as our application start and all custom fields create automatically????

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

Wednesday, October 21, 2015

Inter Portlet Communication(IPC) in Liferay


Inter Portlet Communication ie IPC is needed when we have to communicate between two portlets. Some times these portlets are on same page sometimes they may be on different page. 

Example:- We have a drop down in one portlet by which we can select country name and another portlet display the currency, states, national flag, climate on the basis of country selected by first portlet. In this case we have to send value from first portlet to another.


Continue Reading...

Tuesday, October 20, 2015

Client Side Inter Portlet Communication in Liferay


Today we will discuss Client Side Inter Portlet Communication in Liferay . In my opinion it is the simplest way for sharing data between two portlets which are on same page. Liferay provide two basic methods for this:-

1)For Client

Liferay.fire('eventName',{
            parameter1: value1,
            parameter2: value2

    });

2)For Receiver

 Liferay.on('eventName',function(event) {
   var firstValue = event.parameter1,
   var  secondValue = event.parameter2

});
Continue Reading...

Friday, October 16, 2015

Inter Portlet Communication (IPC) using Events in Liferay


We already know IPC using public render parameters  .Today we will see how to do IPC using Events. Events based IPC was introduced in JSR 286 or we can say in Portlet 2.0. According to this a new method processEvent introduced in Life Cycle of Portlet.Here one Portlet can Produce a event which can be consumed by other portlets.

We take a simple scenario where user can select food type from one portlet and second portlet shows food items on the basis of first portlet. This is a Sender, Receiver kind of scenario but for events there may be one sender and multiple receivers.Here we create two project and each project contain one portlet.

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

Wednesday, October 14, 2015

Inter Portlet Communication (IPC) using Public Render Parameter in Liferay


We already know that render Parameter set in processAction is available to render method of same portlet. But if we set render parameter in one portlet and want to get in another portlet . In this case we use Public Render Parameter so that parameter set in one portlet can be available to another Portlet.This feature is known as Inter Portlet Communication(IPC)  using Public Render Parameter.

We take a simple scenario where user can select food type from one portlet and second portlet shows food items on the basis of first portlet. This is a Sender, Receiver kind of scenario.Here we create two project and each project contain one portlet.

So lets start this step by step:-

Continue Reading...

Tuesday, October 13, 2015

Inter Portlet Communication (IPC) by Portlet Session in Liferay


Inter Portlet Communication can be done by many ways like by using events,public render parameters and Portlet Session. Today we discuss about IPC by using Portlet Sessions. Here we set some value in one portlet and get value in other Portlet.

We take a simple scenario where user can select food type from one portlet and second portlet shows food items on the basis of first portlet. This is a Sender, Receiver kind of scenario.Here we create two project and each project contain one portlet.

So lets start this step by step:-

Continue Reading...

Monday, October 12, 2015

Service Builder in Liferay


Service builder in Liferay provide a easy way to created services. We just need to provide the table structure in a xml file and all the CRUD methods generate automatically. For custom methods you may create Custom Sql  and Finder MethodsToday we create a basic services with just single table and see how to enter data in the table.

So lets start this step by step:-

Continue Reading...

Thursday, October 8, 2015

Portlet Configuration Page in Liferay using Custom Class


We already discuss about Portlet Configuration page using DefaultConfiguration class provide by liferay. In this blog we create the same application but by using our own custom class.Here we are created a simple table where user can configure number of columns at run time. ie Show/Hide columns at run time.

So lets start this step by step:-

Continue Reading...

Portlet Configuration Page in Liferay using DefaultConfigurationAction


Portlet Configuration page in Liferay is a very handy feature by which we can store portlet related configuration at run time. Configuration page in Liferay uses preferences to store the configuration. This can be achieved by two ways:-

1)By using DefaultConfigurationAction Class.
2)By using own class that extends DefaultConfigurationAction .

In this blog we will use the first approach.Here we are created a simple table where user can configure number of columns at run time. ie Show/Hide columns at run time.

So lets start this step by step:-

Continue Reading...

Thursday, October 1, 2015

Edit Mode in Liferay


We already know each portlet have three modes view, edit and help. In this blog we see Edit mode in detail before reading this blog you must know about Portlet Modes in Liferay.In this blog we use a simple form in edit mode where user can set his preferences that he is Vegetarian or non-vegetarian and on this basis we provide a menu of food items.

So lets start this step by step:-

Continue Reading...

Friday, September 25, 2015

Portlet Modes in Liferay


By default Portlet API 2.0 provide 3 portlet modes. This means whether you use Liferay Portal, IBM WebSphere Portal or any other portal 3 modes are present.

Default modes are:-

  • VIEW
  • EDIT(Preferences)
  • HELP
Continue Reading...

Thursday, September 24, 2015

Portlet Preferences in Liferay


Today we will discuss about Portlet Preferences in Liferay. Lets discuss some basic things about Portlet Preferences:-

  • Portlet Preferences are properties for storing basic portlet configuration data.
  • Portlet Preferences are key value pair that are stored by the portal.
  • These preferences are available via PortletPreferences interface.
  • The values are stored in portletpreferences table.

Continue Reading...

Tuesday, September 22, 2015

Sending Mail in Liferay Using Templates(tmpl) Files


In the Previous blog we see how to we Configure mail in Liferay  and how to send a mail programmatically. When we send a mail we have to provide content in setBody() method either in plain text or in the HTML format. But what happen if we want to send a mail with dynamic content in body part and in proper HTML format.In this case we create templates with HTML tags and just call the tmpl files and replace the variables declared inside tmpl files with actual data.

So lets start this step by step:-

Continue Reading...

Saturday, September 12, 2015

Sending Mail in Liferay Programmatically


In the Previous blog we see how to we Configure mail in Liferay.In this blog we will see how to send mail programmatically . Sending mail in Liferay is very simple we just need to use MailServiceUtil class that is provided by Liferay .Here we Consider 3 Scenario:-

So lets start :-

Continue Reading...

Friday, September 11, 2015

Modify Email Notification Send by Liferay


In the Previous blog we see how to we Configure mail in Liferay.In this blog we will see how to modify/edit email notification send by Liferay. Liferay uses some tempelates to structure or design the mails body we just need to Change it.

So lets start this step by step:-

Continue Reading...

Mail Configuration in Liferay using Gmail


Today we will discuss how to Configure Mail in Liferay so that when someone Create Account or forget Password a email notification is sent to his mail id. For Configuration mail in our Liferay we use Gmail .

So lets start this step by step:-

Continue Reading...

Monday, September 7, 2015

Creating Tabs Using Web-Content /Journal Article in Liferay


In the previous tutorial we see how to embed a Asset Publisher Portlet in Liferay. Today we use the same concept and create a web content which contain 2 tabs and in each tabs we embedded a Asset Publisher portlet. Before reading this blog you must know how to create Structure and Template for Web Content and how to embedded a portlet in web content.

Continue Reading...

Saturday, September 5, 2015

Embedding a Portlet in Web Content/Journal Article


We already know how to create a Web Content in Liferay. Today we will embedded a portlet in web content. We know that there are two types of portlet:-

1)Instanceable Portlet
 Instanceable portlet are those portlet that can be added more than one time on a single page. Ex- Asset Publisher.

2)Non - Instanceable Portlet
Non - Instanceable portlet are those that can be added only single time on a page. Ex- Loan Calculator.
Continue Reading...

Saturday, August 29, 2015

Get Web Content/Journal Article Fields Data Programmatically using SAX Parser


We already see in my previous blog on  Structues and Tempelates  that Liferay Stores Structues in xml format. So if you create a Web Content using Structures and Template and want to get the value of fields programmatically , than you can use SAXReaderUtil Class of Liferay. This class is used to parse xml content.


Ex- I already Created a Structure MOBILE_STRUCTURE which contain 5 fields Brand,Model,Description,Camera and Price.Now i create web contents Sony Xperia C using this structures .This data is save in journalarticle table as:-
Continue Reading...

Fetch/Retrieve Web Content (By Providing Structures and Categories) Programmaticlly in Liferay


Today we will discuss how to Retrieve/Fetch a web content by providing categories and structures in Liferay. Basically we filter Web contents as our Asset Publisher portlet do in Liferay.Before reading this blog you must know how to Create Categories, Structures and Templates. For this you may refer my previous blogs on Web Contents.

Continue Reading...

Tuesday, August 25, 2015

Structure and Templates for Web Content in Liferay


Today we will discuss about Structure and Templates for Web Content in Liferay . Lets consider a scenario where we have to create 100 web contents for Mobiles which are almost similar except the names, camera ie small differences. So 100 times you have to write the similar HTML. What if you just create a Template one time and use it again and again.This is the main task of structure and Templates in Liferay.

Continue Reading...

Monday, August 24, 2015

Categorization in Web Content


Today we will discuss about Categorization in Web Content . Here we create multiple web contents and display them based on categories by using Asset Publisher Portlet. Before reading this blog it is highly recommended to read my previous blog on Basic web content in liferay. I already created 4 web content for this blog.

So lets start step by step:-


Continue Reading...

Saturday, August 22, 2015

Basic Web Content in Liferay


Today we will discuss about Basic Web Content in Liferay. But before that we must know what is Web Content.

A web content is a simple static content that can be displayed on a web page. 

Liferay provide a simple way to achieve this . Here we don't need to create any Portlet Just simply use WYSIWUG  HTML editor to create a web content and add to our page.


Continue Reading...

Wednesday, August 5, 2015

Fetch/Retrive a Document with its Metadata Programmatically in Liferay


In my previous blogs we see how to upload a file with metadata. Now its time to fetch all the data Programmatically .Before reading this blog you must know how to create metadata sets and document type for this you can read my previous blog Save Document with Metadata in Liferay
Continue Reading...

Saturday, August 1, 2015

Save a Document with Metadata Programatically in Liferay


In my previous blog we see how to upload a file with metadata associated with it by using Liferay GUI.Today we will discuss how to upload a file or document with metadata in Document and Media Portlet Programmatically. Before reading this blog you must know how to create metadata sets and document type for this you can read my previous blog Save Document with Metadata in Liferay.
Continue Reading...

Friday, July 31, 2015

Save a Document with Metadata in Document and Media Portlet by using Document Type in Liferay


Today we will discuss how to upload a file or document with metadata in Document and Media Portlet of Liferay. For Example like we upload a document like resume .Name and Description are already there but we need extra fields like experience,candidate name, location, Previous company etc which are associated with the resume.This is done by using Document type .Before reading this blog it is highly recommended to read my previous blogs on Document and Media Portlet in Liferay.
Continue Reading...

Tuesday, July 21, 2015

How to Upload Multiple Files in Liferay


Today we will discuss how to upload multiple files in Single browse . We already discuss how to upload a Single file in my previous blog How to upload file in Liferay. Here we create a application where user can select multiple documents and upload in a single Click. Before reading this blog it is highly recommended to read my previous blogs on Document and Media Portlet in Detal ,  Upload Documents Programatically in Liferay  and How to upload files in Liferay.
Continue Reading...

Saturday, July 18, 2015

How to Upload Documents and Files in Liferay


Today we will discuss how to upload documents and files in Liferay. For this we will use Document and Media Portlet of Liferay. We already discuss all method in detail. Here we create a application where user can browse the documents and upload the documents and also able to download the uploaded documents. Before reading this blog it is highly recommended to read my previous blogs on Document and Media Portlet in Detal and  Upload Documents Programatically in Liferay .
Continue Reading...

Folder and File upload Programmatically in Document and Media Portlet of Liferay


In the previous tutorial we discuss how to add Folder and Documents in liferay by using GUI.Today we will discuss how to add Folder and Documents/Files in Document and Media Portlet by using API methods provided by liferay.

For this we have two set of classes:-
1)DL Services
2)DLApp Services

Any of the classes can used to achieve folder creation, file upload etc.But:-

Continue Reading...

Friday, July 17, 2015

Document and Media Portlet in Liferay


Today we will discuss Document and Media portlet of Liferay.This portlet is very useful to store documents so that we can use these like we provide user a facility to download the files etc.  Here we will discuss how to create folder and save images or documents in folder and how to access it. Also i show you  tables where the enties are stored. 

So lets start this step by step:-

Continue Reading...

Friday, June 19, 2015

Create Custom Permission and Show/Hide Content on the Basis of Permission by Using Permission Checker


Today we will discuss How to create our own Custom permission in Liferay and then Show or Hide content on the basis of Permission associated with the User. Also we create model level permission so that Permission can be apply to a particular Model. Before reading this you must know how to create Services for this you can read my previous blog Service Builder in Detail and how to create Role and assign user to that role for this you may refer Role Creation.
Continue Reading...

Thursday, June 18, 2015

Permission in Liferay


Today we will discuss Permission in Liferay. Permission in Liferay is a Complex topic itself so today we discuss just basic of permission System. In Liferay we have  :-
  • Users
  • One User can have multiple roles.Ex- Admin,Guest,Owner, PowerUser etc.
  • One Role can have multiple permissions.Ex- View,Add Site,Add Role,Add Users etc.
Continue Reading...

Saturday, June 6, 2015

Control Panel Permission in Liferay


Today we will discuss how to handle Control Panel Permission in Liferay.Before reading this you must know how to create a particular role and how to assign Users to it.For this you may refer my previous post here.

Today we will create a User that can do all the control panel task except he can not create Sites and Roles.




Continue Reading...

Monday, May 25, 2015

Use of Custom Field/Attribute or Expando in Jsp (Hook)


Today we will discuss how to use Custom Attribute in Jsp.Before reading this, you must read my previous blog on Custom Field in Liferay and Jsp Hook in Liferay.

Here we create a Jsp hook for create account page , so when user fill the form for create account he also provide maritial status and on click of submit button maritial status is also save with the User .

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

Wednesday, May 13, 2015

Custom Field/Attribute or Expando in Liferay by Control Panel


Today we will discuss about Custom Field in Liferay.Lets consider a scenario in which you want that User entity must have one extra field like married. How will you add a new attribute to existing Liferay entity User.Custom fields in liferay is the solution for this problem.

Custom fields are designed to allow end users to extends the default data entities like User, Group etc.You can create custom field programmatically  as well as Using Control Panel. Today we create Custom Field  in User entity by Control Panel. 
Continue Reading...

Wednesday, May 6, 2015

Index Post Processor Hook in Liferay


Today we will discuss about Index Post Processor Hook  in Liferay. In Liferay if you want to providing indexing on some column for searching ,sorting etc. than you can use Index Post Processor Hook.

Ex-Sign in-->Admin -->Control panel-->Users and organization--> all users. Than try to search user by First Name, Last Name,Screen Name you can search easily but than try to search user by Job Title than no result is found.So today we apply indexing on Job Title by using Index Post Processor Hook.
Continue Reading...

Monday, April 27, 2015

Custom Action(Events) Hook in Liferay


Today we will discuss about Custom Action Hook  in Liferay. In portal.properties file their are some properties which have multiple values and some have only one value like true/false.

a)For single value like true/false we override the property see 
Portal Properties hook in Liferay.

b)For multiple values properties like application.startup.events   any values you specify in a hook don’t override the list defined in the portal, but rather are appended to that list.Your actions will then fire when Liferay Portal starts in addition to the list of actions that are specified in the default Liferay installation

Continue Reading...

Friday, April 24, 2015

Adding Struts Action by Hook in Liferay


Today we will discuss about Adding Struts action in Liferay by using Hook.Before reading this blog you must read my previous blog on  Override Struts Action by Hook in Liferay. Adding Struts action is similar to overriding Struts Action but the difference is :-

For Overriding we extends BaseStrutsPortletAction Class.
For Adding we extends BaseStrutsAction Class.
Continue Reading...

Wednesday, April 22, 2015

Override Struts Action by Hook in Liferay


Today we will discuss about Struts Action hook.By using Struts Action hook we can achieve two things:-
1)Overriding existing struts Action
2)Add new Struts Action

Today we will discuss about Overriding existing struts Action. Every time you login a Struts Action is called.Struts use a file called struts-config.xml you can find this file inside WEB-INF .

For overriding Struts Action your custom class must extend BaseStrutsPortletAction which implements  StrutsPortletAction which  contain processAction().
Continue Reading...

Tuesday, April 21, 2015

Language Properties Hook in Liferay


Today we will discuss about Language Properties hook.Language property hook are used to overriding the existed portal language properties like Language_en.properties file for overriding of english language file.We can also add new properties by using Language Property hook.

Today we change :-
1) Button text Sign In  to Login .
2)Error message This Field is required to Please enter this field.
Continue Reading...

Monday, April 20, 2015

Portal Properties Hook in Liferay

Today we will discuss about Portal Properties hook.When we Create Account in liferay we have to provide the value of captcha today we disable the captcha field using Portal Properties hook.

We have portal.properties file inside portal-impl (\ROOT\WEB-INF\lib) which contain some properties.Here some properties have multiple values and some have only one value like true/false.
Continue Reading...

Saturday, April 11, 2015

Open/Close Dialog Box using AUI in Liferay


Today we will discuss how to Open and Close a Aui Dialog box in liferay.In this we create a button on click of button a form is opened in dialog box which contain two input fields name , password and two buttons one for Submit the form and second for cancel.On Submit form is Submitted and details are shown in the dialog box .On Cancel form is simply closed so lets start this step by step.


Continue Reading...

Thursday, April 9, 2015

Form Submission Using AJAX(AUI) in Liferay

Form Submission Using AJAX(AUI)


Today we will discuss how to Submit a form using Ajax .For sending Ajax request we are using Alloy UI (aui) tags.Then finally Print the form data to Success page.The important thing is when we use Ajax the response is come back in Json(or Xml) form then how we redirect to Success page?
Continue Reading...

Monday, April 6, 2015

Role Checking in Liferay for Show/Hide Content

Show/Hide Content on basis of Role in Liferay


Today we will discuss how to Show/Hide content on the basis of role or we can say that how we perform Role checking in liferay. For achieving this we create two roles teacher and student then we create two users Student and Teacher and assign role accordingly.Then finally Check roles and show/hide content. Lets start step by step:-

Continue Reading...

Sunday, March 22, 2015

Portlet Name Space Parameter in Liferay

Use Of Name Space Parameter in Liferay


Today we will discuss the use of Portlet Name Space parameter in Liferay.If you are using Liferay 6.1 then you can get the value of form input values easily but for Liferay 6.2 it is compulsory to use the namespaces.

Continue Reading...

Sunday, March 15, 2015

Ajax Call in Spring MVC Portlet

How To Use Ajax  in Spring Portlet


Today we will discuss how to use Ajax in Spring Portlet. For this we create two select box one for country and second for States. When someone select country Ajax call is generated and dynamically add options in States select box depending on which country is selected.Before reading this blog it is highly recommended to read my previous blog Spring Portlet in Liferay and Form Handling in Spring Portlet .
Lets Start this step by step:-

Continue Reading...

Tuesday, March 10, 2015

Form Submission in Spring MVC Portlet

Form Submission in Spring Portlet


Today we will discuss how to create a simple Login form by using Spring Portlet.In the form we create two input box one for Name second for Password and a Submit button.When user enter same value in name and password it goes to success page otherwise return to login page.Before reading this blog it is highly recommended to read my previous blog Spring Portlet in Liferay
Lets Start this step by step:-

Continue Reading...

Thursday, February 26, 2015

Spring MVC Portlet in liferay

Spring MVC Portlet in Liferay 


Today we will discuss how to create Spring Portlet in Liferay.For doing this first we create a simple Portlet and then convert it into Spring Portlet.By using Spring Portlet we can handle multiple action request ,multiple resource request in seperate methods.We can have multiple action methods in single class.
Lets Start this step by step:-

Continue Reading...

Monday, February 23, 2015

Creating Portlet and Services using Maven in Liferay

Liferay Portlet And Services using  Maven 


Defining Maven in a single line is not possible .Maven do many things for us like resolving dependencies, create project structure, build  a project, creating war/jar etc. By using Maven you can also create portlet, theme, services without any need of sdk. Before starting this you have to install Maven and Ant in your machine.So it is highly recommended to read my previous blog  How to install Maven and How to install Ant.

Continue Reading...

How To Install Ant

How to install Ant?


Ant is a Apache project.It is open source software used to compile , assemble and run java application .Before installing Ant it is compulsory to install Java as mention in my previous article How to install Maven step 1. 


Lets Start this step by step:-

Continue Reading...

Thursday, February 19, 2015

How to install Maven

How to install Maven ?


Defining Maven in a single line is not possible .Maven do many things for us like resolving dependencies, create project structure, build  a project, creating war/jar etc. By using Maven you can also create portlet, theme, services without any need of sdk. So lets install maven.

Continue Reading...

Tuesday, February 17, 2015

Custom Sql With Two Table

Custom sql/sql query with two table 


As discussed in my previous article Custom Sql in Liferay , custom sql is used to write native sql query in liferay. Today we will discuss how to write custom query that belong to two or more table like join query. Before Reading this blog it is highly recommended to read my previous blog on  Service Builder in Detail and custom sql in liferay .
Continue Reading...

Monday, February 16, 2015

Many To Many Relationship in Liferay Services

Today we will discuss Many To Many relationship in Liferay


As discuss earlier Liferay Service Builder create tables with service.xml. But is there any way to provide Many To Many relationship between entities. Yes there is today we will discuss  Many To Many relationship in liferay. Before Reading this blog it is highly recommended to read my previous blog on  Service Builder in Detail.
Continue Reading...

Tuesday, February 10, 2015

Custom Sql in Liferay

Today we will discuss Custom Sql/Sql query in Liferay


Liferay Service Builder create basic CRUD method but there are some scenarios when we have to write SQL query. For writing native SQL query we use the concept of Custom Query in Liferay. Before Reading this blog it is highly recommended to read my previous blog on  Service Builder in Detail.

Continue Reading...

Sunday, February 8, 2015

Finder method for Service Builder in Liferay

Today we will Discuss Finder method for Service Builder in Liferay


In my Previous article Service Builder in Detail we see that liferay created basic CRUD method automatically but what if we want to add our custom method in Liferay services . There are many ways but creating Finder method is the simplest one.

Continue Reading...

Friday, January 30, 2015

Adding a Page ,Change Layout, Adding a Portlet on a page Programmatically(via Code) in Liferay.

Normally we add a page, change layout adding a portlet on a particular page by using drag and drop or by clicking our mouse.Today we will add a page,Change Layout from 2 to 3 and than finally add a portlet on newly created page Programmatically.

Continue Reading...

Thursday, January 22, 2015

Search Container in Liferay 6.2


Liferay Provide a simple and easy way to show list of Objects in proper tabular format with pagination by using Search Container tag of liferay.

Our goal is to show a list of Student in which:-

1)Column show student name,last name,Class etc.
2)In one column we show address of Student that comes from                    another jsp.
Continue Reading...

Wednesday, January 21, 2015

Liferay Service Builder in Detail

Today we will see concept of Service Builder in liferay


Before reading this blog it is highly recommended to read my blog on Service Builder in Liferay .Liferay Service Builder based on hibernate and Spring DI .Service builder create tables automatically as in Hibernate.Service builder generates Services for the entities in two location. These location use the package path describe in service.xml :-

1)docroot/WEB-INF/services/package name
2)docroot/WEB-INF/src/package name
Continue Reading...

Thursday, January 15, 2015

Liferay Jsp Hook for override login jsp

Today we write a Hook for overriding default Login Page. Here we remove the openID, Create Account and Forgot Password links

Continue Reading...

Sunday, January 4, 2015

Liferay Service Hook to override Liferay Existing Service


Today we will see how to write service wrapper in Liferay 6.2. We override User service getUserCount().Here we create a class that extend the particular wrapper class and just provide the entries of our custom class in liferay-hook.xml so that liferay use our services instead of Original.


Continue Reading...

Total Pageviews

Like Us on Facebook

Number Of Unique Visitor

Free counters!