2 Replies Latest reply on May 5, 2009 1:35 PM by wesleyhales

    Portlet 2.0 & Liferay support

    sverker

      How are the thoughts about support for Portlet 2.0? Will support be added in current 1.0 tree or will it be done as 2.0 (which then would be implementing JSR329 instead of JSR301)?

      The reason why I ask is that I want to use the bridge under Liferay which works fairly ok. However, there are several dependencies on the JBoss Portal implementation. For example in the PortalIdentity module where I don't see a reason as the neccesary methods do exist in Portlet 1.0 api.

      Another example is AjaxPortletBridge.transferLocales where the PortletConfigImpl of Jboss Portal is loaded with reflection. There it's more motivated as that method doesn't exist on the 1.0 api but does on 2.0 api. When running that method on Liferay a ClassNotFound exception will be thrown and catched inside the method so the failure will be "silent" so to speak.

      I understand that you probably do not want to delay 1.0.0.GA to in the last minute add Liferay support but one way forward is that I'd implement that as an independant patch which could later be merged to a 1.1 release but if so then it's important that we agree on how the Liferay support should be done.

      As I see it the best method would be to first test if JBoss Portal implementation can be loaded, if that fails then try with Liferay implementation. When Portlet 2.0 support is implemented that should be removed and the standard api methods be used wherever possible.

      What do you think?
      /Sverker

        • 1. Re: Portlet 2.0 & Liferay support
          sverker

          Acctually it wasn't such a big deal. AjaxPortletBridge.transferLocales was the only place I found where implementation specific class was loaded with reflection and it was quite easy to change to use jsr268 implementation by reflection and fall back to JBoss Portal implementation if needed. Hence it will work on Liferay and other portal containers as well as long as they support jsr268.

          I'll now look into more in detail on the PortalIdentity module if more work is needed.

          • 2. Re: Portlet 2.0 & Liferay support
            wesleyhales

            We will have Liferay examples/configuration in the upcoming CR2 release, this week.

            If you have ideas for PortalIdentity after this CR2 release, please let us know.