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):||1 September 2015|
|PDF File Size:||11.94 Mb|
|ePub File Size:||10.89 Mb|
|Price:||Free* [*Free Regsitration Required]|
Liferay IDE lets you create either project type using command line tools: Fill in the Project name and Display name. The Display namehowever, can have spaces. Leave the Use default location checkbox checked.
By default, the default location is set to your Plugins SDK. Creating portlet projects with Liferay IDE is easy.
You can also access the New Server Runtime Environment wizard if you need to set up your runtime server; just click the New Liferay Runtime button next to the Liferay Portal Runtime dropdown menu. Select Portlet as your plugin type. If you want to launch the New Portlet Wizard after your project is created, select the checkbox of that name.
The New Portlet Wizard guides you in creating a custom portlet class. Click Next if you selected Portlet as your plugin type.
Introduction to Liferay Development – Liferay – Liferay Developer Network
If you selected Service Builder Portlet as your plugin type, then click Finish. If you selected Portlet as your plugin type, make sure that the Liferay MVC framework is selected in the next window and click Finish. With Liferay IDE, you can create a new plugin project or devekopment you already have a project, create a new plugin in an existing project.
A single Liferay project can contain multiple plugins. Navigate to the portlets directory in the terminal and enter the appropriate command for your operating system:. This folder is your new portlet project.
This is where you will be implementing your own functionality. Alternatively, if you will not develompent 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.
If you do this, you will need to make sure the project references some.
To resolve the dependencies for portlet projects, see the classpath entries in the build-common. You can determine from the plugin. Developpment is not a recommended configuration, and it is encouraged that you keep your projects in the Plugins Developmnet. After building the plugin for deployment, several additional files will be generated that should not be handled by the source control system.
By default, new portlets use the MVCPortlet framework, a light framework that hides part of the complexity of portlets and makes the most common operations easier. Files stored here include the standard JSR portlet configuration file portlet.
The Liferay-specific configuration files, while optional, are important if your portlets will be deployed on a Liferay Portal server. Client Side Files are the.
These files should go in the docroot folder. Liferay provides two tools, a taglib and API methods, to generate a namespace for you.
Creating a Liferay MVC Portlet Project
See the Using Portlet Namespacing tutorial to learn more about namespacing. Writing a Data-Driven Application.
First up is creating a portlet with Liferay IDE, so go ahead and get started. Select the Ant liferay-plugins-sdk option for your build type. Creating a Liferay MVC Portlet Using the Terminal Navigate to the portlets directory in the terminal and enter the appropriate command for your operating system: