Monday, October 10, 2011
Customizing Liferay using Tricks-I
Labels:
Default Landing Page,
Liferay FileUpload,
Liferay HowTo,
look-and-feel.xml,
Message Bus,
Password,
Portal Properties,
search Container,
Theme Display,
Tricks,
UI Taglib
Liferay Plug-In Project Tutorial
1. Now that a SDK and portal server have been configured you can create a new Liferay plug-in project. Go to File > New Project... > Liferay > Liferay Plug-in Project
2. In the Liferay Plugin project wizard page, select the SDK and Liferay runtime and then select the plug-in type (portlet is default) and now you can create a new plug-in project, by clicking Finish.
3. If it worked you should see a new plugin project in the package explorer, so you are ready to begin Plugin Development.
Cheers..!!
Gaurav
2. In the Liferay Plugin project wizard page, select the SDK and Liferay runtime and then select the plug-in type (portlet is default) and now you can create a new plug-in project, by clicking Finish.
3. If it worked you should see a new plugin project in the package explorer, so you are ready to begin Plugin Development.
Cheers..!!
Gaurav
Liferay Portal Tomcat Runtime / Server Setup
1. In eclipse open the Runtime environments preference page (Go to Window > Preferences > Server > Runtime environments)
2. Click Add to add a new Liferay runtime and find Liferay v6 Tomcat under the Liferay, Inc. category and click Next.
3. If you have not already downloaded and installed a copy of the Liferay Portal Tomcat bundle then you can download the latest Liferay Portal Tomcat bundle by clicking the "Download and Install..." button within the wizard.
4. If you used the download option you can skip this step, if not, click Browse and select the location of the liferay-portal-6.0.2 directory.
5. Once you have selected the Liferay portal directory if it has a bundled JRE then that bundled JRE will be automatically selected as the JRE to use for launching the server. However, if there is no bundled JRE (Mac and Linux users) then you will need to select the JRE to use for launch.
6. Click finish and you should see the Liferay portal runtime in the list of runtimes in the preference page.
7. Click OK to save the runtime preferences.
8. If you didn't choose to create a server you will need to create one from the servers view before you can test the server.9. Find the Liferay, Inc category and select the Liferay v6 Server and choose the Liferay v6 Runtime that you had previously created.
Testing the Liferay portal server #
1. Go to the servers view and you should see the new server that was created. right click and choose "Start" or "Debug"
2. You should see messages appear in the Console view and once it starts, the servers view will update to show that it is "Started" and then, right-click the server and select the (Liferay Portal > Open Portal Home) action.
3. The eclipse browser should open to the portal home at http://localhost:8080
Cheers..!!
Gaurav
2. Click Add to add a new Liferay runtime and find Liferay v6 Tomcat under the Liferay, Inc. category and click Next.
3. If you have not already downloaded and installed a copy of the Liferay Portal Tomcat bundle then you can download the latest Liferay Portal Tomcat bundle by clicking the "Download and Install..." button within the wizard.
4. If you used the download option you can skip this step, if not, click Browse and select the location of the liferay-portal-6.0.2 directory.
5. Once you have selected the Liferay portal directory if it has a bundled JRE then that bundled JRE will be automatically selected as the JRE to use for launching the server. However, if there is no bundled JRE (Mac and Linux users) then you will need to select the JRE to use for launch.
6. Click finish and you should see the Liferay portal runtime in the list of runtimes in the preference page.
7. Click OK to save the runtime preferences.
8. If you didn't choose to create a server you will need to create one from the servers view before you can test the server.9. Find the Liferay, Inc category and select the Liferay v6 Server and choose the Liferay v6 Runtime that you had previously created.
Testing the Liferay portal server #
1. Go to the servers view and you should see the new server that was created. right click and choose "Start" or "Debug"
2. You should see messages appear in the Console view and once it starts, the servers view will update to show that it is "Started" and then, right-click the server and select the (Liferay Portal > Open Portal Home) action.
3. The eclipse browser should open to the portal home at http://localhost:8080
Cheers..!!
Gaurav
Liferay IDE Getting Started Tutorial
Table of Contents [-]
Installation #
If you have not already installed Liferay IDE view Liferay IDE Installation Guide for a detailed walk-through of installation.
Requirements before getting started #
1. Liferay Portal 6.0 (RC2 or greater) downloaded and installed (or download in the IDE itself)
2. Liferay Plug-ins SDK 6.0 (RC2 or greater) downloaded and installed (or download in the IDE itself)
3. Eclipse Helios/Galileo Java EE for developers package -
see the Liferay IDE Installation Guide for more information.
Note: earlier versions of Liferay, e.g. 5.x, are not supported yet by the Liferay IDE
Liferay Plug-ins SDK Setup #
Before you can begin creating new Liferay plug-in projects, a Liferay Plug-ins SDK and Liferay Portal must be installed and configured in the IDE.
1. Open Eclipse with Liferay IDE installed.
2. Open Preference page for Liferay > Installed SDKs ( Go to Window > Preferences > Liferay > Installed SDKs )
3. If you have not already downloaded the Liferay Plug-ins SDK for your portal version you can download it from the sourceforge.net Liferay downloads page. Liferay plugin sdk is located available in the "portal" folder. In the "portal" folder, select the Liferay version matching the Liferay version. Within this folder, look for liferay-plugins-sdk-x.x.x.zip (usually the last file).
4. Add your SDK using the Add button which brings up the Add SDK Dialog:
5. Browse to the location of your Plug-ins SDK installation.
6. The default name is the name of the directory but you can change it if you wish.
7. Select OK and you should see your SDK in the list of Installed SDKs.
Note: multiple SDKs can be added to the preferences but you will need to select at least one SDK to be the default which is represented by the SDK that has the checkbox selected.
Note: if you have version 6.0.4 of Liferay Portal and the Plugin SDK, you will need to change your build.properties file. The SDK plugin assumes you have installed the SDK at the same level (same directory) as the portal directory. In the line
app.server.dir=${project.dir}/../bundles/app_server_name of build.properties you have to change bundles with the name of the Liferay portal installation directory e.g. liferay-portal-6.0.4.
Otherwise, portlets created with the SDK plugin will not be deployed by Ant.
Note: multiple SDKs can be added to the preferences but you will need to select at least one SDK to be the default which is represented by the SDK that has the checkbox selected.
Note: if you have version 6.0.4 of Liferay Portal and the Plugin SDK, you will need to change your build.properties file. The SDK plugin assumes you have installed the SDK at the same level (same directory) as the portal directory. In the line
app.server.dir=${project.dir}/../bundles/app_server_name of build.properties you have to change bundles with the name of the Liferay portal installation directory e.g. liferay-portal-6.0.4.
Otherwise, portlets created with the SDK plugin will not be deployed by Ant.
To Continue see: Liferay Portal Tomcat Runtime / Server Setup
Installation #
If you have not already installed Liferay IDE view Liferay IDE Installation Guide for a detailed walk-through of installation.
Requirements before getting started #
1. Liferay Portal 6.0 (RC2 or greater) downloaded and installed (or download in the IDE itself)
2. Liferay Plug-ins SDK 6.0 (RC2 or greater) downloaded and installed (or download in the IDE itself)
3. Eclipse Helios/Galileo Java EE for developers package -
see the Liferay IDE Installation Guide for more information.
Note: earlier versions of Liferay, e.g. 5.x, are not supported yet by the Liferay IDE
Liferay Plug-ins SDK Setup #
Before you can begin creating new Liferay plug-in projects, a Liferay Plug-ins SDK and Liferay Portal must be installed and configured in the IDE.
1. Open Eclipse with Liferay IDE installed.
2. Open Preference page for Liferay > Installed SDKs ( Go to Window > Preferences > Liferay > Installed SDKs )
3. If you have not already downloaded the Liferay Plug-ins SDK for your portal version you can download it from the sourceforge.net Liferay downloads page. Liferay plugin sdk is located available in the "portal" folder. In the "portal" folder, select the Liferay version matching the Liferay version. Within this folder, look for liferay-plugins-sdk-x.x.x.zip (usually the last file).
4. Add your SDK using the Add button which brings up the Add SDK Dialog:
5. Browse to the location of your Plug-ins SDK installation.
6. The default name is the name of the directory but you can change it if you wish.
7. Select OK and you should see your SDK in the list of Installed SDKs.
Note: multiple SDKs can be added to the preferences but you will need to select at least one SDK to be the default which is represented by the SDK that has the checkbox selected.
Note: if you have version 6.0.4 of Liferay Portal and the Plugin SDK, you will need to change your build.properties file. The SDK plugin assumes you have installed the SDK at the same level (same directory) as the portal directory. In the line
app.server.dir=${project.dir}/../bundles/app_server_name of build.properties you have to change bundles with the name of the Liferay portal installation directory e.g. liferay-portal-6.0.4.
Otherwise, portlets created with the SDK plugin will not be deployed by Ant.
Note: multiple SDKs can be added to the preferences but you will need to select at least one SDK to be the default which is represented by the SDK that has the checkbox selected.
Note: if you have version 6.0.4 of Liferay Portal and the Plugin SDK, you will need to change your build.properties file. The SDK plugin assumes you have installed the SDK at the same level (same directory) as the portal directory. In the line
app.server.dir=${project.dir}/../bundles/app_server_name of build.properties you have to change bundles with the name of the Liferay portal installation directory e.g. liferay-portal-6.0.4.
Otherwise, portlets created with the SDK plugin will not be deployed by Ant.
To Continue see: Liferay Portal Tomcat Runtime / Server Setup
Cheers..!!
Gaurav
Labels:
Apache Tomcat,
Directory Structure,
Download,
Download Liferay,
Eclipse,
Ext plugin,
helios,
Hooks,
Install Liferay,
Installation Tomcat,
Integration,
Liferay FileUpload,
Liferay Plug-in,
Portlets
Liferay IDE Installation Guide
This document is a detailed guide to installation of Liferay IDE.
Requirements #
Java 5.0 JRE
Eclipse Inidigo (3.7.x) or Eclipse Helios (3.6.x) IDE for Java EE Developers
Installation steps #
1. Install Eclipse Indigo or Helios (unzip download file from above)
2. Run eclipse.exe
3. When eclipse opens, go to Help > Install New Software...
4. Click "Add..." button to open Add Site dialog
5. Type in Liferay IDE for name, and location use one of the following URLs
Eclipse Indigo Update sites #
Indigo release stable URL - http://releases.liferay.com/tools/ide/eclipse/indigo/stable/]
Indigo release nightly URL - http://releases.liferay.com/tools/ide/eclipse/indigo/nightly/] (Unstable version)
6. Select OK
7. Select the Liferay IDE site from the combo selection box.
8. When the table refreshes you should see Liferay Tooling category and one entry for Liferay IDE feature, select the checkbox to install the feature.
9. Click Next and then click Finish to begin the install
10. After plugins download and install you will have to accept that the content is unsigned and then restart eclipse.
11. After you restart, go to Help > About Eclipse and you should see a Icon badge for Liferay IDE that shows you have it properly installed.
Check installation #
If everything installed correctly you should be able to begin using the IDE.
Cheers.
Gaurav
Requirements #
Java 5.0 JRE
Eclipse Inidigo (3.7.x) or Eclipse Helios (3.6.x) IDE for Java EE Developers
Installation steps #
1. Install Eclipse Indigo or Helios (unzip download file from above)
2. Run eclipse.exe
3. When eclipse opens, go to Help > Install New Software...
4. Click "Add..." button to open Add Site dialog
5. Type in Liferay IDE for name, and location use one of the following URLs
Eclipse Indigo Update sites #
Indigo release stable URL - http://releases.liferay.com/tools/ide/eclipse/indigo/stable/]
Indigo release nightly URL - http://releases.liferay.com/tools/ide/eclipse/indigo/nightly/] (Unstable version)
6. Select OK
7. Select the Liferay IDE site from the combo selection box.
8. When the table refreshes you should see Liferay Tooling category and one entry for Liferay IDE feature, select the checkbox to install the feature.
9. Click Next and then click Finish to begin the install
10. After plugins download and install you will have to accept that the content is unsigned and then restart eclipse.
11. After you restart, go to Help > About Eclipse and you should see a Icon badge for Liferay IDE that shows you have it properly installed.
Check installation #
If everything installed correctly you should be able to begin using the IDE.
Cheers.
Gaurav
Labels:
Apache Tomcat,
Community,
Database,
Directory Structure,
Download,
Download Liferay,
Eclipse,
Enterprise,
Install Liferay,
Installation,
Integration,
Liferay FileUpload,
Liferay Plug-in,
TimeZone,
Tomcat
Download and Install liferay
First download the community version with tomcat server from the liferay website
or Click Here
Unzip the contents to a suitable location.
Open the bin directory
And click on the startup.bat file to start and shutdown.bat file to shutdown.
To change the server standard time.
Open the setenv.bat in an editor and change the –Duser.timezone
-Duser.timezone=Asia/Delhi
Restart the Server .
For Database Settings
log into the MySql command line editor.
mysql> create database `lportal` CHARACTER SET utf8 COLLATE utf8_general_ci;
create a portal-ext.properties file in \liferay-portal-6.0.6
Add the following Lines to connect to MySql Database.
#
# MySQL
#
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEn
coding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=root
save and restart.
Check installation success in MySql
mysql>use lportal ;
mysql>show tables ;
A total of 185 rows indicating 185 tables must be shown.
Thats it, You are done and now you can start development on Liferay !!!
Cheers..!!
Gaurav
or Click Here
Unzip the contents to a suitable location.
Open the bin directory
And click on the startup.bat file to start and shutdown.bat file to shutdown.
To change the server standard time.
Open the setenv.bat in an editor and change the –Duser.timezone
-Duser.timezone=Asia/Delhi
Restart the Server .
For Database Settings
log into the MySql command line editor.
mysql> create database `lportal` CHARACTER SET utf8 COLLATE utf8_general_ci;
create a portal-ext.properties file in \liferay-portal-6.0.6
Add the following Lines to connect to MySql Database.
#
# MySQL
#
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEn
coding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=root
save and restart.
Check installation success in MySql
mysql>use lportal ;
mysql>show tables ;
A total of 185 rows indicating 185 tables must be shown.
Thats it, You are done and now you can start development on Liferay !!!
Cheers..!!
Gaurav
Labels:
Apache Tomcat,
Database,
Directory Structure,
Download,
Download Liferay,
Eclipse,
Hooks,
Install Liferay,
Installation,
Integration,
Liferay FileUpload,
Liferay Plug-in,
Portlets,
TimeZone,
Tomcat
Subscribe to:
Posts (Atom)




















