This JSR development tutorial shows how to master request-response programming using the PortletRequest and PortletResponse objects of the Portlet JSR (Portlet ) defines a lifecycle for events, so that eventing is name as defined in the previous code example in the portlet section of the file. Portlet Tutorial, Java Portlet, Portlet Example, Java Portlet Tutorial, What is Portlet , JSR has introduced the using of annotations for controlling things were.

Author: Tojalkis Mazuramar
Country: Mali
Language: English (Spanish)
Genre: Education
Published (Last): 24 February 2007
Pages: 211
PDF File Size: 16.80 Mb
ePub File Size: 1.94 Mb
ISBN: 637-2-18585-692-6
Downloads: 51461
Price: Free* [*Free Regsitration Required]
Uploader: Kagajinn

Portlets also have a portlet filter available for each phase in the portlet lifecycle. Execute mvn package in this directory. The first method showed here is the simplest one. Do you want to use a portlet development framework with a UI component model that makes it easy to develop sophisticated, rich The portlet takes up an entire page. In this method the var attribute is used. Those areas contain different windows and each window contains portlet:. The portlet API provides a convenient implementation of this interface.

The third method mixes form submission and action request. This class is part of the JBoss Portlet Bridge This is a mandatory parameter to define what’s the default page to display. This ensures that the portlet will render well within the theme and across portal vendors. One when the portlet is rendered and two when the portlet is actioned then rendered. Each portlet phase executes different operations: If this value has not been specified, specify the WAR file name of the portlet application in its place.


This section describes how to deploy a portlet in GateIn 3. The portlet can be on a page that contains other portlets. The three states defined by the JSR specification are:.

This section shows you tutorjal to develop portlets using the following frameworks and techniques:. Processes events triggered in the Action phase. Use this mode to configure a custom view or behavior. It is split in different pieces.

In the response, the portlet returns content e. Omit this tag if the portlet does not use this feature. For more information, see The XML configuration interface. Like many web apps, portlets process requests and generate responses. The XML configuration interface allows the portlet developer to specify places, pages, themes, skins, supported markups and clients, and other settings for a portlet application.

It uses the portlet response object to write simple output directly to the portal page.

Use this file if you use services from the Public API javadoc package. Minimized A portlet may show very little information, or none at all. This lets a portlet serve dynamic content without running the Render phase on all portlets on a page.

An action phase is a phase where some state changes. Portlet tugorial states control the amount of space a portlet takes up on a page. Runtime classpath RP branches from runtime classpath patches. Using the other standard portlet modes.

Creating a simple portlet

It must contain the following information:. In the example above the title would be Simplest Hello World Portlet. Using the portlet tag library to generate links to the portlet in different ways. A portlet can tutoriak different view modes.


To do this, proceed as follows: Adding more features to the previous example.

For a detailed description of these features, see the tutorial OSGi and Modularity. The configuration is slightly different from a JSP application. Application Monitoring Filter supports four lifecycle phases as the order below: Doing all this in other types of web apps would titorial manual re-coding.

More than one portlet application may be defined in this file:. Application class loaders AC1application class loaders AC2and application class loaders AC3 are portlet tutprial that branch from application extensions.

Create a new portal page and add the portlet to it. This software allows developers to write a portlet application as if it was a JSF application.

Tugorial, compile the portlet using the fully qualified path to the Java portlet source. If an installed portlet application includes a class loader, the portlet application class loader is an application class loader ACx under WebSphere Portal Express.

Creating a simple portlet

Portlet interface uses the javax. Portlets handle requests in multiple phases. Web apps in Liferay Portal are called portlets. With that said, you can use a variety of technologies to develop portlets that run on Liferay Portal.

Author: admin