In these tutorials you’ll learn how to develop portlet projects to top your Liferay pizza in such a way that the end-user won’t be able to tell the difference between . Developing Your First Portlet For example, features like platform-generated URLs exist to support Liferay’s ability to serve multiple applications on the same. In short, Liferay was written by developers for developers, to help you get The most common way to develop web applications for Liferay Portal is with portlets.
|Country:||Antigua & Barbuda|
|Published (Last):||4 October 2007|
|PDF File Size:||8.26 Mb|
|ePub File Size:||12.90 Mb|
|Price:||Free* [*Free Regsitration Required]|
Your first application is simple: By default, it shows guestbook messages that various users leave on your website.
To add a message, you click the Add Entry button to show a form that lets you enter and save a message. Your first step is to create a Liferay Develop,ent Project. Modules are the core building blocks of Liferay Portal applications. Every application is made from one or more modules. Each module encapsulates a functional piece of an application, and then multiple modules form a complete application.
This tutorisl your applications easy to maintain and upgrade. These modules are OSGi modules. Each tytorial is packaged as a JAR file that contains a manifest file. The manifest is needed for the container to recognize the module. Technically, a module that contains only a manifest is still valid.
Follow these instructions to create your first Liferay Module Project:.
On the second screen of the wizard, enter Guestbook for the component class name, and com. Once this is done, you have a module project named guestbook-web.
The mvc-portlet template configured the project with the proper dependencies and generated all the files you need to get started:.
Your new module project is a portlet application. When you access a developpment site, you interact with an application. That application could be simple: The application might be complex: These applications run on a platform that provides application developers the building blocks they need to make applications.
Portlet Development – Liferay – Liferay Developer Network
Many Liferay applications can run at the same time on the same page. Portlets are one of those basic building blocks.
Often a web application takes up ;ortlet entire page. If you want, you can do this with applications in Liferay Portal as well. Portlets, however, allow Liferay Portal to serve many applications on the same page at the same time. Portlets created in Liferay Module Projects are generated as Components. If the module sometimes also called a bundle encapsulates pieces of your application, the component is the object that contains the core functionality. A Component is an object that is managed by a component framework or container.
What a perfect model for a web application! In this case, you created a Declarative Services DS component. Devvelopment Declarative Services, you declare that an object is a component, and you define some data about developmemt component ilferay the container knows how to manage it. After it starts, drag and drop the guestbook-web project from the Project Explorer to the server.
In this wizard, make sure you use the default database Hypersonic. Next, check that your application is available in Liferay Portal.
Open a browser, navigate to your portal http: To add an application to a page, click the Add button in the upper right hand corner it looks like a portlt signand then select Applications. In the Applications list, your application should appear in the Sample category.
Its name should be guestbook-web-module Portlet. This is the default Liferay homepage. It contains several portlets, including the initial version of the Guestbook application that you created. Developing Your First Portlet Step 1 of 8.