Portlet Bridge for JavaServer Faces FAQ

What is the Portlet Bridge and why is it useful to me?

permlink

The Portlet Bridge for JavaServer Faces is a technology that sits between a portlet container and the JSF runtime enabling JSF applications to be exposed and run as portlets. By doing the heavy lifting of translating between the portlet runtime environment and the environment expected by JSF, the Portlet Bridge allows one to write an application once and run it in both the web (servlet) container and the portlet container. Its even designed so that a single deployment can be run concurrently as a web application and a portlet appliction.

For JSF developers its value is it extends the reach of the developed JSF application into Portal environments. For portlet developers its value is it provides an easy to use, modern, standard, application development/runtime platform in which to express your portlet functionality.

Why is there more than one bridge?

permlink

The Portlet Bridge for JavaServer Faces is a technology that sits between a portlet container and the JSF runtime enabling JSF applications to be exposed and run as portlets. Because differing versions of the portlet container and JSF exist, a distinct bridge implementation is provided for each combination of the two systems versions. This ensures a best possible fit for each possible pair. Currently, this project is providing implementations for the two portlet versions (1.0 and 2.0) within the JSF 1.2 environment. In the future work will appear to support portlet 2.0 within JSF 2.0.

The MyFaces Portlet 1.0 Bridge for JavaServer Faces 1.2 is the reference implementation for JSR-301. The JSR-301 specification is currently in "Proposed Final Draft" form.

The MyFaces Portlet 2.0 Bridge for JavaServer Faces 1.2 is the reference implementation for JSR-329. The JSR-329 specification is currently in "Early Public Draft" form.

Why is there more than one JSR?

permlink

Though it was originally hoped to produce both the Portlet 1.0 and Portlet 2.0 versions of the bridge within a single JSR (JSR-301) they were eventually split into two distinct JSRs to better fit within the JCP infrastructure. JSR-301 contains the specification for the Portlet 1.0 Bridge for JavaServer Faces 1.2. JSR-329 contains the specification for the Portlet 2.0 Bridge for JavaServer Faces 1.2.

What is the status of each JSR/specification?

permlink

JSR-301: Portlet 1.0 Bridge for JavaServer Faces

JSR-329: Portlet 2.0 Bridge for JavaServer Faces

What about JSF 2.0 support. Is a JSR planned? When will there be an implementation?)

permlink

A Portlet 2.0 Bridge for JavaServer Faces 2.0 is planned. A preliminary prototype was developed in January 2009 to test feasibility and provide feedback while the Faces 2.0 specification was being completed. Once JSR-301 and JSR-329 are complete, serious development targeting Faces 2.0 will continue. Prior to that it is hoped an alpha release can be completed and released, though to do so will need community help and support. In addition, its not yet decided whether such work will be done within a JSR. Feedback from the community is needed to gauge the need for a new specification.

Do I have to run the MyFaces Portlet Bridge with MyFaces (core)

permlink

No. The bridges in this project are designed to work with any Faces 1.2 implementation. Its been regularly used with various versions of Mojarra 1.2 (Faces RI) as well as MyFaces 1.2.

MyFaces_Portlet_Bridge_FAQ (last edited 2009-09-20 23:01:08 by localhost)