The Holy Java

Building the right thing, building it right, fast

When will we see JSR 286 in JSF portlets?

Posted by Jakub Holý on March 17, 2009

Since June 2008 we have the final release of Portlet 2.0 (JSR 286) specification bringing the long sought after features like inter-portlet communication (IPC – events, shared/public render parameters), support for Ajax (resource request), portlet filters and more. It’s already implemented in the latest versions of leading portals including Liferay 5.0, JBoss 2.7, Websphere 6.1 (though you can still encounter some bugs).

Now we would like to know when the lovers of JSF will be able to profit from these features in their JSF portlets.

Current state

Currently it’s possible to embed a JSF 1.2 application into a JSR 168 portal using a Portlet Bridge 1.0 (JSR 301). This is all still quite new – JSR 301 is only a proposed final draft as of June 8th 2009. So you can expect that it will take time to see also support for JSR 286 (or the upcoming JSF 2.0).

Note: Of course you can run JSF portlet bridge 1.0 applications in JSR 286 compliant portals but won’t have an easy access to the new features.

Future

A specification of  Portlet Bridge 2.0 that would bring JSR 286 to the JSF world is being born but it’s still so young that it even hasn’t a JSR number yet. While creating the specification for Portlet Bridge 1.0 took 2-3 years we may hope that 2.0 could be faster as the foundation is already laid by 1.0 but still it will surely take at least half a year, much more likely a year or more. For the time being the only option is to take any of the open source implementations and try to hack the feature you need.

Update: The JSR for Portlet 2.0 Bridge for JSF 1.2 is #329 (thanks, balz).

Implementations

MyFaces Portlet Bridge 2.0, a reference implementation of the new specification being formed, already has some alpha code. They’re quite ahead of time :-)

According to some posts WebSphere Portal 6.1 implementation of portlet bridge seems to support JSR 286 though it is not yet perfect.

JBoss Portlet Bridge (now 1.0.0 beta 6) and Sun JSF Portlet Bridge (1.2.3, 8/2008) plan this perhaps in their 2.0 versions. We can also see that the authors of ICEFaces plan to incorporate this in v2.0 (currently 1.8.0RC1), but likely all of them depend on the specification coming to some stable state.

But a limited support is already available, for instance you can use public render parameters in JSF Portlet Bridge.

Summary

It will take at least months to have a JSR 286 enabled Portlet Bridge buth work is already under way.

About these ads

5 Responses to “When will we see JSR 286 in JSF portlets?”

  1. topolik said

    I agree.

    I think that it take loooong time till the end. And the end must not finish the way we would like to. As for JSR 168 it took really long time to get the bridges almost to work.

    The only hope is JSR 301 (which is primarily aimed on 168) (see http://www.mail-archive.com/users@myfaces.apache.org/msg52123.html).

    Or maybe we can implement portlet 2.0 bridge ourselves :)

    And then the next step is …

    … JSF 2.0 in Portlets 2.0 ;)

  2. You can expect the Portlet 2.0 bridge relatively soon. Originally it was going to be developed under JSR 301, so that’s where the work started. However, the JCP wanted a separate JSR, so that work was moved into a new JSR (329). The early review draft is already out.

  3. Oliver said

    Thx for your post. What I don’t understand: The portlet bridge 1.0 for JBoss works with JSR168 and JSR268, but why can’t it use the new JSR268 features?

    Thx
    Oliver

  4. balz said

    There is also new hope in very new JSR 329:
    http://jcp.org/en/jsr/detail?id=329

  5. balz said

    forgot to mention that currently it is driven by Oracle only…

Sorry, the comment form is closed at this time.

 
%d bloggers like this: