Note: Follow above two articles before start this article. Liferay IDE have different version like 1. Now we have to choose Liferay Prospective in the Eclipse. Now select Plugin Type is Portlet and click on check box i.
|Published (Last):||2 November 2015|
|PDF File Size:||10.34 Mb|
|ePub File Size:||2.97 Mb|
|Price:||Free* [*Free Regsitration Required]|
This tutorial is intended to provide you a full detailed explanation for getting Liferay Portal up and running and deploy the same employee registration sample that we had developed in earlier tutorial. Generally, you may find some difference between Apache Pluto and Liferay but actually, a lot of work has already done on behalf of you when it comes to develop a Portlet using Liferay.
This plugin will help you creating Liferay Portlet with its proprieties to be deployed smoothly later on. Click next and accept the terms and conditions. Click finish. Download latest Liferay Portal from this link. Unzip the downloaded into your directory. Click next and browse towered you unzipped Liferay. Start the server from Servers pane. Fill in all required information before finish the configuration.
Click finish configuration. Accept the terms by clicking on I Agree. Enter your password that will be used for logging into your Portal later on and click on save. Select the password reminder question and type its answer and click save. This form is already done through wide range of Portlet containers and Portlet types. The same sample would be introduced using the Liferay Portal and its proprietaries. That lets you creating a Liferay Portlet as a Liferay Plugin.
From the shown wizard, fill in all the required information. Click next and select the JSF component suite. Employee model will be like normal Java class below: package com. This is a JSF implementation responsibility and so you should focus into your business needs instead of got involved with adhoc work.
FacesMessage; import javax. ManagedBean; import javax. SessionScoped; import javax. FacesContext; import javax. ActionEvent; import org. Logger; import com.
EmployeeDAO; import com. Messages component will help you getting notified by the status of your operation. Register submit action should provide you facility of sending entered information to be saved after then. EmployeeDAO is responsbile of saving an employee while the database connectivity is handled by ConnectionUtility. IOException; import java. Connection; import java. DriverManager; import java. SQLException; import java. PreparedStatement; import java.
SQLException; import com. ConnectionUtility; import com. Browsing of your dashboard will make you able of adding, removing and modifying your Portlets. But before adding your Portlet into your dashboard, just make sure you were deploying it. Fill in all the information required and try to register And finally, you should be able of seeing the employee registered inside your database.
Due to Liferay Portal maturity and good reputation of it, this tutorial is an example that shows you how can you install and deploy a JSF Portlet into Liferay Portal. Contribute us by commenting below and find the downloaded source code.
Writing Your First Liferay DXP Application