In this three-part series, the articles describe new features available in the Java Portlet Specification (JSR ) and extensions supported by OpenPortal. The Java platform provides an standard referred to as JSR that standarizes how portlets interact with portlet containers and ensures compatibility across. In , Java Portlet Specification (JSR) first defined portal and For a detailed description of these features, see the tutorial OSGi and Modularity. Note .

Author: Malajar Goltim
Country: Eritrea
Language: English (Spanish)
Genre: Photos
Published (Last): 6 June 2011
Pages: 79
PDF File Size: 1.92 Mb
ePub File Size: 3.19 Mb
ISBN: 971-4-32942-212-7
Downloads: 38093
Price: Free* [*Free Regsitration Required]
Uploader: Mokora

The Java Portlet Specification defines a contract between the portlet container and portlets and provides a convenient programming model for Java portlet developers.

Initially Java portal vendors had their own portlet development framework thus those portlets were confined to specific portal servers and couldn’t be deployed to the rest of the Java portals. Refer to the ksr for Rational Application Developer for complete setup instructions.

Portlet portleet are similar to servlet filters in that they allow request and response modification on the fly. This page was last edited on 21 Novemberat If you are familiar with the web.

Before you begin developing portlets, set up an environment that makes the tasks of writing, compiling, and testing portlets tktorial. Portlet standards platform independent application programming interfaces that are intended to enable software developers to create portlets that can be plugged into any portal supporting the standards. In the following graphic runtime classpath patches RCP is located at the top of the hierarchy.

It uses the portlet response object to write simple output directly to the portal page. Portlets handle requests in multiple phases. Portlets instead access a javax.


Creating a simple portlet

Hello World provides the fewest methods required for a portlet. When this phase runs on one portlet, it also runs on all other portlets on tuotrial page. In the response, the portlet returns content e. Here Portlets catalog are portpet use. The following shows the minimum elements required for the standard portlet deployment descriptor. Once the portlet processes all events, the portal calls the Render phase on all portlets on the page.

We recommend the latter, so you can take advantage of the modularity features inherent in OSGi.

2. Java Portlet Specification (JSR)

View the basic steps for creating a simple portlet, that include writing the portlet code, compiling java source, creating the JAR file, writing the portlet descriptors, setting up the WAR file directory structure, and packaging and deploying portlets. There are number of differences between the elements in this example and the corresponding Figure 8.

The Java Portlet Specification V1. The Render phase runs when any portlets on the page complete the Action or Event phases.

For those who want to adopt portals certainly need many and variety of portlets to deploy and run. When you develop portlets for Liferay Portal, you can leverage all the features defined by the portlet specification. This lets a portlet serve dynamic content without running the Render phase on all portlets on a page.

Java Portlet Specification

So what do these specifications define? Because Windows limits the maximum path length to characters, the name of the WAR file must be less than 25 characters. The recently released Java Portlet Specification 3.

The Action phase can also trigger events that are processed by the Event phase. The last thing you want is for someone to grow frustrated with your site because of constant page To facilitate deployment of portlet applications and complex portlets, you can provide a portlet configuration file that can be invoked by the XML configuration interface XMLAccess. In short, portlets alleviate many of the traditional pain points associated with developing web apps.


A portal and a portlet container can be built together as a single component of an application suite or as two separate components of a portal application. By using this site, you agree to the Terms of Use and Privacy Policy.

For deployers, it’s easy to keep a single set of solution and deploy it on many. Each portlet phase executes different operations:.

Do you want to use a portelt development framework with a UI component model that makes it easy to develop sophisticated, rich Depending on how you develop and package your portlet, however, it may portelt be able to run on other portal containers. Events are used for IPC. Processes events triggered in the Action phase.

Creating a simple portlet

Portlet window states control the amount of space a portlet takes up on a page. The resources can be images, JSP files, Writing the portlet descriptorsand property files containing translated message text.

Use this file if you use services from the Public SPI javadoc package.

Author: admin