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
|Published (Last):||5 November 2011|
|PDF File Size:||12.19 Mb|
|ePub File Size:||19.44 Mb|
|Price:||Free* [*Free Regsitration Required]|
JSR allows portlets to send and receive events.
Public render parameters are another way in IPC. For those who want to adopt portals certainly need many and variety of portlets to deploy 2866 run. Some examples of portlet applications are e-mailweather reportsdiscussion forumsand news. The new portlet filter functionality allows you to plug filters around any life-cycle call of the portlet.
Working specifucation Liferay URLs. Instead, you needed an additional servlet that served the resources. The ordinary parameter access methods return the merged set of these three parameter maps.
Portlet Specification, Version 1. It also provides persistent storage mechanisms for the portlet preferences. Using cookies You can set cookies at the response of each life-cycle method processAction, processEvent, render, and serveResource with this code: January Learn how and when to remove this template message. The expert group of JSR consists of all the major commercial and open-source portal developers, portlet bridge developers, and portlet framework developers.
This attribute is set on a request targeted to a portlet, indicating the current portlet life-cycle phase of prtlet request. Container runtime options allow the portlet to supply specific options to the portlet container that either change default behavior defined in the Java Portlet Specification or add additional behaviors.
The GenericPortlet class does the rest for you. Thus, you can dramatically reduce the memory footprint for these portlets, as the code in listing 9 shows. This will add advantage to perform some events or some actions before portlet is rendered.
This method gives a hint to the portal about how much information the target serveResource call requires. To support these use cases, JSR introduces the portlet-managed modes that are not known to the portal, but are managed by the portlet itself.
What’s new in the Java Portlet Specification V2.0 (JSR 286)?
Generally if any portlet is have in action page other portlet need to render the portlet within the page. The portlet can declare such a mode in the portlet deployment descriptor with the code shown in listing 6. 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. These two parts are needed as some portal implementations, such as WebSphere Portal, stream the page and portlet output directly to the client to avoid buffering overhead.
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.
The important feature in JSR is Inter portlet communication. The portal should provide UI controls that allow the portlet to switch to this mode. Comments Sign in or register to add and subscribe to comments.
Java Portlet Specification – Wikipedia
We recommend that you do not change the cache scope programmatically, though, as it may be difficult for portlet oprtlet to ensure that cache entries are invalidated correctly if your portlet mixes responses with cache scope public and private for the same user. Let’s take a deeper look into the new features for extending the Java Portlet Specification in the next sections.
Portlets are componentized user-facing applications that create some kind of markup. Event based mechanism way to communicate between portlet which are in same or in other page too.
Java Portlet Specification
You can find a complete list of the members of the expert group here. Ideally, set the expiration time to a high value so that the markup is cached for a long time.
Note that ResourceURLs cannot set new render parameters, portlet mode, or window state. This implementation specificatioh that changing a render parameter, for example, requires an update of all the URLs on the page, which the portal cannot perform, as the processing of the response data on the client is done entirely by the portlet.
Standard portlet API
This will help us access portlet from remote location other portals. Generic Portlet Development using Liferay Plugins Validation-based caching is useful for situations in which you do not want to recompute the markup of a portlet often because it is an expensive operation.
The portlet can define localized names for the decoration using the resource bundle entry: The expert group of JSR worked to make JSR extensible so that you can add features and functionality in our frameworks hsr top of JSR in a noninvasive and container-independent manner. Typical applications of portlet filters could include these:. JSR support Ajax mechanism to communicate with server. Public render parameters allow sharing of request parameters across different portlets or other artifacts, like themes or portal pages in IBM WebSphere Portal.
A servlet request listener can distinguish a plain servlet request targeted to a servlet from a wrapped servlet request targeted to a portlet by looking at the request attribute javax. You specify a unique QName and optional alias names in the portlet. This article needs additional citations for verification. As mentioned before, the model is a loosely coupled model where the portal application acts as broker between the different portlets and distributes the events.
The main new features of version portler. A portlet container receives requests from specificatlon portal to execute requests on the portlets hosted by it. As you have seen, the second version of the Java Portlet Specification added a lot of new content and abilities.
Generally Portal specification is different and we will use portlet container to manage portlets and its lifecycle. This is one of the good features. The requirement areas we intend to address include, but are not limited to, the following: