Version of the Portlet Specification plans to align with J2EE , integrate other new JSRs relevant for the portlet, and align with the WSRP specification V Learn all about the second version of the Java Portlet Specification (JSR ). In Version , the specification and the APIs more than doubled. Version of the Java Portlet Specification extended the capabilities to was approved by the Java Community Process in March as JSR

Author: Grora Gozuru
Country: Philippines
Language: English (Spanish)
Genre: Relationship
Published (Last): 25 July 2012
Pages: 380
PDF File Size: 10.96 Mb
ePub File Size: 9.25 Mb
ISBN: 117-8-98647-150-3
Downloads: 41987
Price: Free* [*Free Regsitration Required]
Uploader: Voodoozragore

This method also used specially for Ajax call in portlet, to call this method we will use different URL i. You specify a unique QName and optional alias names in the portlet. This specificatjon means that you must set at least an expiration time using response.

Before transition from Action Phase to Render Phase portlet can send events to other portlet in Events phase. If you have portlets that are not customizable and don’t display different content for different users, such as a news-of-the-day portlet, then you get a cache entry for each user, even if all entries are the same. If nothing has changed in the back-end system, you validate that the expired cache content is still valid to use by setting the CacheControl.

This setting indicates to the portal that specufication should treat this mode just like the standard View mode concerning all aspects, including how it provides the portlet with preferences and from the perspective of access control.

You can specify a full Jrs 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.

A portlet container runs portlets and provides them with the required runtime environment. Thus, portlets that want to contribute to the head section or to set a portlet title should turn on the two-part rendering feature with the setting shown in listing 3 in the portlet deployment descriptor.

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

The only way to share data between the portlet and the servlet is to use the application-scope session or the parameter on the URL that invokes the servlet. Validation-based caching is useful for situations in which specjfication do not want to recompute the markup of a portlet often specificqtion it is an expensive operation.

In the second version, you can set cookies, document head section elements jr example, HTML ones such as meta, link, or style and HTTP headers such as application-specific Pragma headers.


Thus, the portal does not have a chance to update other parts of the page where this information may be encoded; for example, in WebSphere Portal all URLs contain this information and so need to be updated. Note that if you use a container runtime option and the container on which your portlet is deployed does not support this option, the container may reject the deployment of the portlet.

portley We will use some public render parameters to each portlet so that it will carry the data between portlet and it will available to other portlets. In JSR was added another feature called serving resources with help of this we can serve the images, pdf and other content types to client.

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

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. Event based mechanism way to secification between portlet which are in same or in other page too.

Inter portlet communication is mechanism to send or receive data between two portlets. Note, however, that no life-cycle calls are defined around the portlet window, so if you use the portlet window ID for specifying namespace entries in a persistent data store, you also need to clean up these entries yourself.

We recommend that you do not change the cache scope programmatically, though, as it may be difficult for portlet containers to ensure that cache entries are invalidated correctly if your portlet mixes responses with cache scope public and private for the same user.

The new portlet filter functionality allows you to plug filters around any life-cycle call of the portlet. After the action and event processing specificatiln 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.

Standard portlet API

Specifying the shared property enables the portal to use only one version of such shared resources per page. Web content structure 1 velocity templates 1 vm varibles 1 wcm 1 web application 1 web applications 1 web content display 1 web content email forms 1 web content froms 1 web content structures 1 web content template 1 web content templates 1 web content to pdf 1 web content velocity variables 1 web content workflow 1 web server 1 web service invoker 1 wedeploy 1 workflow definition xml 1 workflow designer 1 xhtml 1 xpath 1 yahoo news 1 yahoo stocks 1 yahoo weather 1 yql 1 yui 1.

You receive these parameters in the serveResource call. Here another method added in lifecycle so that it send or publish the events and when page render respective listener portlets receive the dada or events. The portlet programming model now provides you with events and public render parameters so that you can build larger composite applications out of your portlets and reuse your portlets in different scenarios.


Portlet 1 defines that it can publish some event A in its portlet. The other mentioned materials will be taken into account to create a version 2. A JSR portlets catalog makes sure that portlets under this catalog may run on any standards—compliant Java portal server.

The JSR specification demanded that portlet containers must invalidate specificafion cache for each user interaction with a portlet render specidication action URLso that there could be only a single cache entry per portlet window and user. Ideally, set the expiration time to a high value so that the markup is cached for a long time. The ordinary parameter access methods return the merged set of specificaiton three parameter maps.

Types of portlet solution vertical domains and technology like collaboration, social networking, community, content management, utility, calendaring, HRM all are available in these catalogs.

Portlets are componentized user-facing applications that create some kind of markup.

The Web Services for Remote Portlets specification defines a web service interface for accessing and interacting with interactive presentation-oriented web services. The runtime also can enhance the cacheability of resources in other ways, for example by keeping track of the state changes on the client and re-rendering only the parts affected by state changes.

As we have seen, JSR provides you with the means to ;ortlet resources directly using the portlet.

The important feature in JSR is Inter portlet communication. Access to all these life-cycle listeners gives you many hook points for managing objects related to these lifecycles, which is a great feature for many frameworks.

After you click a link in the navigator portlet that sets the docid to document3, the content portlet displays the content of that document because its view state the ID of the current document has been changed from an external influence. An example is a programmatically generated SVG view that depends on the portlet preferences for back-end access.

Portet two-part rendering is straightforward if you extend GenericPortlet and override the methods that GenericPortlet provides, such as getTitle and getHeaders.