JSR 286 PORTLET SPECIFICATION PDF

Learn all about the second version of the Java Portlet Specification (JSR ). In Version , the specification and the APIs more than doubled. The Java Portlet Specification addresses the requirements of aggregation, was approved by the Java Community Process in March as JSR This tutorial on JSR development provides an introduction to portlet programming as the reader is taken through the creation of a simple HelloWorld portlet.

Author: Meztihn Fenrisar
Country: Liechtenstein
Language: English (Spanish)
Genre: Love
Published (Last): 25 May 2013
Pages: 447
PDF File Size: 9.8 Mb
ePub File Size: 17.32 Mb
ISBN: 145-9-29134-664-2
Downloads: 58676
Price: Free* [*Free Regsitration Required]
Uploader: Nijas

Here before portlet execute render phase it can send events to other portlets. You need to register such a listener with the listener element in the portlet deployment specifiation, and your class needs to implement the PortalURLGenerationListener interface that defines a callback method for each type of portlet URLs: Some of its major features include: Articles needing additional references from January All articles needing additional references.

With the introduction jrs public render parameters and shared caching, the specification has been enhanced to allow the container to cache multiple portlet views based on render parameters.

But we have many elegant web application frameworks.

QNames are the mechanism for using unique names in XML; they also have a Java representation as the standard library class javax. This article needs additional citations for verification.

Some examples of portlet applications are e-mailweather reportsdiscussion forumsand news. You can specify a full QName for each event, or if you use the same namespace for many events, you can declare it as the default namespace and then specify only the local part of each event.

Inter portlet communication is mechanism to send or receive data between two portlets.

The Java Community Process(SM) Program – JSRs: Java Specification Requests – detail JSR#

We will define some public render parameter such a way it will available to other portlet to get the data from that. It allows you to define a short expiration time so that your portlet gets called often and can check for changes in the back-end system. Note that some of the features described in this article are optional, so they may not be supported on all JSR compliant platforms, but the standard ensures that those platforms that provide extended capabilities do so in a consistent and well-defined manner.

  LEY 18010 PDF

To receive a serveResource call triggered by a resource URL, you need to either implement the new ResourceServingPortlet or extend GenericPortlet, which already implements the new interface.

What’s new in the Java Portlet Specification V (JSR )?

The last element in the filter chain is the portlet itself. A Portlets Catalog is a set of portlets that are ready-to-use components for enterprise portals. The important point here is to set the portal-managed mode to false. This extension now allows you to use the namespace to also crate namespace form 2286 if, for example, your portlet is intended to be aggregated in a forms-based portal server.

After the action and event secification have finished, the rendering lifecycle starts and the portlets can create new markup based on the state updates that occurred in the action and event phases.

Portlet Specification, Version 1. Defining a public render parameter is very similar to defining an event: Sign in or register to add and subscribe to comments. In this section, we cover various smaller additions that can make your life easier and that can support new use cases, such as the new Java 5 features leveraged in the API, the new caching features, the changes in the runtime IDs that you can access, and the tag lib additions.

Liferay Important Code Snippets. Let’s take a deeper look into the new features for extending the Java Portlet Specification in the next sections. In our sample, there is a connection between Portlet 1 and Portlets 2 and 3 for this event. Resource URLs trigger the lifecycle method, serveResource, on the ResourceServingPortlet interface that you can leverage to create dynamic resources directly in the portlet.

  BHAJA GOVINDAM MEANING PDF

Note epecification setting the cacheability of a resource response makes sense only if you allow the response to be cached by specifying HTTP caching headers for the returned response. This servlet, however, was then addressed directly and not through the specifocation framework, so it did not have the portlet state provided, nor was it under the security protection of the portal, as you can porltet in figure 4.

It was completed in JCP version 2. Full and shared cacheable resources such as shared static resources, for example, JavaScript libraries.

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

In JSRthe portlet could leverage only portlet modes that are supported by the portal framework running the portlet.

What’s new in the Java Portlet Specification V2.0 (JSR 286)?

The expert group of JSR consists of all the major commercial portlft open-source portal developers, portlet bridge developers, and portlet framework developers. The specification and the APIs more than doubled compared to version 1.

Figure 3 depicts an example where a navigator portlet and a content portlet share the same public parameter docid. Comments Sign in or register to add and subscribe to comments. The portal should provide UI controls that allow the portlet to switch to this mode. The JSR tag library has its own namespace so that new additions do not spefification with portlets using the old JSR tag library. This page was last edited on 21 Novemberat Because some portal implementations still depend on Java 1.

This method also used specially for Ajax call in portlet, to call this method we will use different URL i.

VPN