Developing portlets using jsf, ajax, and seam part 1 of 3. Java community people was founf some of the limitations in jsr 168 and they are added new specifications to jsr 168 then they released as jsr 286 standards. Jan 21, 2017 jsr 286 portlet life cycle also have all above jsr 168 4 methods, there are 2 new method introduce in jsr 286. Some of the capabilities of jsr286 include the following. To do that, choose file new web project next provide a name, choose java ee 6 specification and finish the wizard. Initially my managed bean responsible to process this file has a. Using adobe flex in jsr 286 portlets this article shall show you how the adobe flex sdk can be used in a portal environment to enhance the user interface for a portlet. Using adobe flex in jsr286 portlets this article shall show you how the adobe flex sdk can be used in a portal environment to enhance the user interface for a portlet.
Updates to the original jsr java community process. Imagine a great book that made understanding the jsr168 api easy, and taught you exactly what you needed to know to start developing effective portlet solutions. Javadocs for this packages are licensed under the apache license, version 2. Jsr 286 allows portlets to fire events and consume events. By using portlets as controllers, delegating complex business logic to javabeans or even a restful or soapbased service layer, and using jsps. If the render state is modified through this interface, the changes take effect for subsequent portlet render phase processing. Mar 08, 2010 hi, im new at portlet jsr286, i have to write a portlet and consume it by a portal, that on loading phase it shows some kind of content take it from a web service, using a particular web method. In the simplest terms, for javabased portals, a portlet is a java servlet that operates inside a portal. In february 2006, the jsr 286 expert group was formed to start work on java portlet. Imagine a portlet development book that dealt with just that.
The java portlet specification defines a contract between the portlet container and portlets and. This is a sponsored portlet in the uportal project. Jcp membership for organizations and commercial entities requires annual fees but is free for individuals. How to create a jsf primefaces portlet for liferay 7 with. Difference between jsr 168 and jsr 286 portlet life cycle. This call now allows you to use this id as key for data that you want to create namespace per portlet window.
Additional presentation materials are available at the following. These tutorials and tips are designed to help any software developer who is looking to develop jsr 286 programming skills to become quickly adept at both basic and advanced portlet programming topics, empowering the developer to quickly create portlet based software that can be effectively deployed to any of the standardsbased portal servers on the market today. Portlet interface in many regards, a portlet behaves very much like a servlet from the servlet and jsp api. Jul 14, 2008 action processing in a jsr 168 portlet strictly speaking, the various do methods of a portlet should only be responsible for generating the markup that needs to be sent back to the client. Jetspeed is fullycompliant with the portlet specification 2. Like a servlet, a portlet is a shy and reserved little creature that lives peacefully in a war file web application archive. Diagram from java portlet specification, version 2.
The java portlet specification achieves interoperability among. What are the key features of jsr 286 portlet specification. Basically, you can think of the different portlet modes as different subapplications, so it can be useful to set up the struts. Jsr 286 content viewer portlet vs ibm content viewer portlet. Some of the capabilities of jsr 286 include the following.
Notes about portlet events in jsr 286 web age dev zone. Avetanabluetooth allows programmers to easily use and offer bluetooth services. Avetanabluetooth is a javajniimplementation of jsr82 for linux and j2se. Jan, 2011 jsr 168 vs jsr 286 the major improvements from jsr 168, as noted in the jsr 286 document events enabling a portlet to send and receive events and perform state changes or send further events as a result of processing an event. Building standardsbased java portlets using jsr 286. Portlets are the visible active components that users see within their portal pages. With the jsr 301 portlet bridge specification, we now have a standard way of running jsf applications as both 1. To verify that a server runtime environment is available, click window preferences, expand server, and then click runtime environments. The project consists of a library based on java specification request 94, release 1. It has also previously been possible to use flex with jsr 168 portlets and alike flexportal, but with the new portlet 2. Portlet container notifies a consumer portlet by invoking its processevent method.
Bulk data operations for collections jsr 335 concurrency updates. Jsr 286 content viewer portlet vs ibm content viewer. A consumer portlet can also fire an event from the processevent method. Learn all about the second version of the java portlet specification jsr 286. The necessary interface documentation is in the hcl portal spi javadoc.
He is also the spec lead for jsr 352 batch applications for the java platform. Portlet standard jsr 168 jsr 286 java user group switzerland. Jsr 286 comes with lots of new features that were missing in jsr168 api and badly required by portal developers. Events enabling a portlet to send and receive events and perform state changes or send further events as a result of processing an event. Install jsr 286 portlet support select the project and choose myeclipse project facets capabilities install jsr portlets facet next choose jsr 2. It has also previously been possible to use flex with jsr168 portlets and alike flexportal, but with the new portlet 2. In the create jsr 286 java portlet wizard, you add portlet modes by adding them to a list on the content types and portlet modes page.
A portlet first handles an action request, and then an event request, and only after that, it would render any request. Portlets are used by portals as pluggable user interface components that provide a presentation layer to information. Aug 05, 2010 jsr 286 allows portlets to fire events and consume events. Resource serving provides the ability for a portlet to serve a resource. Batch processing is execution of series of jobs that is suitable for noninteractive, bulkoriented and longrunning tasks. The stateawareresponse represents a response that can modify render state information or send events. For example, when the user presses the browsers reload button, the portlet gets the same render parameters again and can render the same view. The wizard enables you to implement the standard modes supported by jsr 286 and the extended modes provided by webcenter portal. The minimum platform required by this api is the j2me connected, limited device configuration cldc v1. Pluggable annotationprocessing api mr 4 each component jsr specification, or revision thereto, may be related to one or more features in the detailed list below. Below is the initparam elements that you can set up in portlet. Second, jsr 286 introduced a new api call that allows you to get to a unique id for the portlet window using the request. For more information about using the wizard, see creating a jsr 286 java portlet.
Mar 15, 20 the wlp jsr 286 portlet container invokes a jsr 168 compatibility mode for a portlet if either of the following are true. Posted on august 5, 2010 august 5, 2010 by bibhas bhattacharya. Webcenter portal offers different development strategies for transactional features, portlets and task flows being the most common. Building a web service powered jsr 168 financial portlet. A portlet project and the corresponding ear is created, and displayed in the enterprise explorer view. It was developed to improve on the shortcomings of the version 1. Select jsr 286 api and faces as the portlet type, as shown in figure 5. The specifications of these changes are contained in two accompanying documents. Jsr 168 vs jsr 286 the major improvements from jsr 168, as noted in the jsr 286 document events enabling a portlet to send and receive events and perform state changes or send further events as a result of processing an event. The portlet bridge handles the portal actionrender paradigm to.
These parameters will be accessible in all subsequent render calls via the portletrequest. Batch applications in java ee 7 undertanding jsr 352. May 30, 20 the following jsr 286 tutorial, written by sal pece, explores how to forward to java server pages jspsfrom a portlet, while at the same time leveraging various portlet 2. Reusing liferay services when developing a web application as a portlet has changed.
There is no way to fire an event during the rendering phase. There, i do a file upload and after show the results of processing. Download avetanabluetooth jsr82 implementation for free. The location api for j2me is designed as an optional package that can be used with many j2me profiles. The following example is developed using rational application developer websphere portal 7. See also documentation in the announcementsportlet wiki on confluence. The portlet programming model also provides events and public render parameters so that you can build larger composite applications out of your portlets and. To use this sample, you must have websphere portal server and an application server installed and configured. Imagine a great book that made understanding the jsr 168 api easy, and taught you exactly what you needed to know to start developing effective portlet solutions. Jsr 286 was finalized in 2008 and it was last specification was released for portlet technology and over the years java community process group have introduced new specification that is jsr 362. Liferay, as portlet container, uses a modular approach to building web functionalities through the implementation of jsr 168 286.
In each specification new features was introduced and those were implemented in the portals. Author bio chris vignola works for the ibm aim software organization and is the lead architect for websphere systems management. The java community process jcp, established in 1998, is a formalized mechanism that allows interested parties to develop standard technical specifications for java technology. Jsr 286 is a specification that defines a set of apis to enable interoperability between portlets and portals, addressing the areas of aggregation, personalization, presentation, and security. Dave landers portlets jsr168 page 22 portlet preferences configuration for a portlet instance persistent customization of a portlets view or behavior declared in deployment descriptor portlet. These tasks are typically data or computationally intensive, execute sequentially or in parallel, and may be. How to develop a very basic jsr 286 portlet web application. Jsr168 portlet development simplified, second edition. The challenge of developing a web portal is to bring all distinct applicationsdata into one place. Difference between jsr 168 and jsr 286 portlet life cycle,jsr 168 portlet life cycle,jsr 286 portlet life cycle. Anyone can become a jcp member by filling a form available at the jcp website. Hi, im new at portlet jsr286, i have to write a portlet and consume it by a portal, that on loading phase it shows some kind of content take it from a web service, using a particular web method. From the standpoint of an application developer, a portlet is any java class that implements the javax.
Typical examples are endofmonth bank statement generation, endofday jobs such as interest calculation, and etl extracttransformload in a data warehouse. Public render parameters allowing portlets to share parameters with other portlets. The portlet should not modify the map any further after calling this method. Action processing in a jsr168 portlet strictly speaking, the various do methods of a portlet should only be responsible for generating the markup that needs to be sent back to the client. Figure 1 shows an example portal page with a portlet on it. An event is first fired from the processaction method. The following jsr286 tutorial, written by sal pece, explores how to forward to java server pages jspsfrom a portlet, while at the same time leveraging various portlet 2. Part 1, overview and coordination between portlets. Liferay services and api have been split into osgi modules. Jsr 286 content viewer portlet the java portlet specification v 2. Jsr 168 defines a portlet specification with the following goals. This sample creates a jsr 286 portlet project that shows events and public render parameters. I have a jsr 286 portlet running in a websphere portal server 8.
A portlet project and the corresponding ear are created, and it appears in the enterprise explorer view. Stack overflow for teams is a private, secure spot for you and your coworkers to find and share information. Jun 03, 2012 the new series jsr 286 portlet are series of examples using jsr 286 portlet api. The new series jsr 286 portlet are series of examples using jsr 286 portlet api. For example, when the user presses the browsers reload button, the portlet gets the same render parameters again and can.
783 1031 1129 63 1369 125 1275 929 599 976 1211 616 87 128 573 282 1236 86 1404 837 566 1129 1077 287 310 1211 1441 848 1149 195 107 750 1204 226 850 1189 1083 45 766 76 1154 674 1416 515 466 1480