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.
|Published (Last):||6 September 2015|
|PDF File Size:||17.11 Mb|
|ePub File Size:||14.53 Mb|
|Price:||Free* [*Free Regsitration Required]|
By default, it shows guestbook messages that various users leave on your website. Portlets handle requests in multiple phases. When you develop portlets for Liferay Portal, you can leverage all the features defined by the portlet specification. If you selected Service Builder Portlet as your plugin type, then click Finish.
MVC Portlets – Liferay – Liferay Developer Network
If you want to launch the New Portlet Wizard after your project is created, select the checkbox of that name. Here are some links to instructions on Liferay development tools: In this case, you created a Declarative Services DS component. This is not a recommended configuration, and it is encouraged that you keep your projects in the Plugins SDK.
Use this mode to configure a custom view or behavior. Develop,ent tutorial explains the tags that developers can use to create layouts.
To resolve the dependencies for portlet projects, see the classpath entries in the build-common. Its name should be guestbook-web-module Portlet. In this tutogial, make sure you use the default database Hypersonic. The Liferay-specific configuration files, while optional, are important if your portlets will be deployed on a Liferay Portal server.
Liferay MVC Portlet
That accounts for the model in the MVC pattern. Developers use Liferay Portal in many ways. What a perfect model for a web application! Developing modules for Liferay Portal requires: When you access a web site, you interact with an application. With Declarative Services, you declare that an object is a component, and you define some data about the component so the container knows how to manage it.
Liferay MVC Command Classes In a larger application, your -Portlet class can become monstrous and unwieldy if it holds all of the controller logic.
Open a browser, navigate to your portal http: Once the portlet processes all events, the portal calls the Render phase on all portlets on the page. Creating a folder structure: You can determine from the plugin. Each portlet phase executes different operations:.
Learning Paths are thus ideal for getting started plrtlet Liferay development. You can also extend them to include your own functionality, and this is no hack: Technically, a module that contains only a manifest is still valid. Before diving in to the Liferay MVC swimming pool with all the other hutorial kids applicationsreview how each layer of the Moody Vase Conscription pattern helps you separate the concerns of your application. Most modern applications use View Mode only. After it starts, drag and drop the guestbook-web project from the Project Explorer to the server.
There are two ways to pass information from the action phase to the render phase. After building portley plugin for deployment, several additional files will be generated that should not be handled by the source control system.
Alternatively, if you will not be using the Plugins SDK to house your portlet projects, you can copy your newly created portlet project into your IDE of choice and work with it there.
Introduction – Liferay – Liferay Developer Network
Portlets, however, allow Liferay Portal to serve many applications on the same page at the same time. Liferay is an open platform in an ecosystem of open platforms. Liferay Portal does, however, provide utility developmet that can access the ServletRequest and query parameters. There can be some confusion over exactly tutroial kind of Portlet. That means there are plenty of robust implementations to reference when you need to design or troubleshoot your Liferay applications.
Depending on how you develop and package your portlet, however, it may not be able to run on other portal containers. If your portlets target an international audience, you can localize the user interface. With Service Builder, the model layer is generated into a service and an porglet module. It can also be used as a web integration layer, leveraging technologies such as portlets to allow several applications to coexist on the same web page.
It is perfectly valid to bring the tools The resource URL then invokes the This section shows you how to develop portlets using developmeht following frameworks and techniques: Using external artifacts in your project requires configuring their dependencies.
Select the Ant liferay-plugins-sdk option for your build type. You understood the Action phase and There are no special configuration files that need to be kept in sync with your code. A good folder structure facilitates evolving and maintaining code, especially in collaboration. The first thing to do is give your portlet a project When this phase runs on one portlet, it also runs on all other portlets on the page.
Each module is packaged as a JAR file that contains a manifest file. Liferay IDE lets you create either project type using command line tools: The most common way to develop web applications for Liferay Portal is with portletsbecause they integrate well with other existing applications.