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: Vojar Tular
Country: Honduras
Language: English (Spanish)
Genre: Photos
Published (Last): 28 February 2008
Pages: 288
PDF File Size: 2.19 Mb
ePub File Size: 2.98 Mb
ISBN: 869-3-97128-148-3
Downloads: 63856
Price: Free* [*Free Regsitration Required]
Uploader: Dile

There are many different use cases for serving resources; therefore, there are also different requirements for the ability to cache serveResource calls. Finally, you get better support for Ajax-based use cases with JSR as you are now able to serve resources directly though the portlet.

Java Portlet Specification

As an incremental upgrade to the technology, we will be building on the last revision, version 1. Newer Post Older Post Home. We need to deploy portlet in portal we simply use this protocol we can access other portlet which are in other portlet container.

The ordinary parameter access methods return the merged set of these three parameter maps. 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.

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. 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.


If this specification, or a future version of this specification, is included in a future version of a Java platform specification, this specification will remain available for use outside the platform specification, and will continue to be evolved outside the platform specification. In both cases, the portal needs to know what kind of events a portlet can receive and send.

The first approach allows more control and flexibility, while the second is easier to use.

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

Resource URLs trigger the lifecycle method, serveResource, on the ResourceServingPortlet interface that you can leverage to create dynamic resources directly in the portlet. These extension points are:. This practice is common for Ajax applications, which can particularly benefit from the two enhancements that version 2.

Java enterprise platform Java specification requests Web portals.

With the help of Ajax we speciffication avoid render all portlets in page. Here before portlet execute render phase it can send events to other portlets. This capability opens the possibility to create new functionality by combining existing components into business mashups in a similar fashion to popular Web 2. At runtime, a filter chain of all the filters is applied to the portlet.

In this case, GenericPortlet automatically dispatches to the given JSP, which can then make use of the portlet state information by including the portlet tag library. Note that 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. The Java Portlet Specification defines a contract between the portlet container and portlets and provides a convenient programming model for Java portlet developers.

For deployers, it’s easy to keep a single set of solution and deploy it on many. Listing 5 is an example of a filter that does some pre- and post-processing and provides the portlet with a wrapped request. You now need to include the new tag library with: JSR support Ajax mechanism to communicate with server.


This page was last edited on 21 Novemberat In the first version of the Java Portlet Specification, you had only the option sjr including servlets or JSPs from the render life-cycle call.

Standard portlet API

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. Create Spring Portlet in Liferay.

For action URLs, there is also the additional name attribute that allows you to set the javax. The expert group of JSR worked to make JSR extensible so that you can add features and functionality in our frameworks on top of JSR in a noninvasive and container-independent manner. Leveraging these coordination features, portal administrators or business users can now build larger composite applications, out of portlet components without programming.

Here Portlets catalog are of use. If, for example, the request to the back-end server takes up 90 percent of the time to render the portlet, it does not make sense to use validation-based caching to save only the remaining 10 percent rendering time. These remote portlets may not be written in Java, and so we need a more general mechanism than the Java serialization. One example involves implementing a mapping of resources to shared IDs.

Hsr that ResourceURLs cannot set new render parameters, portlet mode, or window state. Now the user interacts with Portlet 1 and triggers an action on Portlet 1. Portlets 2 and 3 define that they are able to receive event A in their portlet.