0 Replies Latest reply on Sep 20, 2012 10:05 AM by kenfinni

    Portlet Bridge code re-structure with RichFaces 4

    kenfinni

      Hi All,

       

      I've been thinking about the current code for Portlet Bridge and how adding support for RichFaces 4 has included a reasonable amount of changes and work arounds into the main portletbridge-impl code to support it, and wondering if there was a better way.

       

      My initial thoughts are to create a RichFaces specific module in either /core/richfaces, /core/richfaces-impl or /richfaces/impl to hold any code that is RichFaces specific.

       

      To make the splitting out of the RichFaces code a bit easier for developers, I'd also propose introducing two depchain boms for Portlet Bridge.  One containing the current api and impl for JSF2 portlet usage, and another that includes the JSF2 depchain and adds the RichFaces module as well.

       

      What it would mean is that a JSF2 portlet developer would change from including:

      <dependency>

          <groupId>org.jboss.portletbridge</groupId>

          <artifactId>portletbridge-api</artifactId>

          <version>${version}</version>

      </dependency>

      <dependency>

          <groupId>org.jboss.portletbridge</groupId>

          <artifactId>portletbridge-impl</artifactId>

          <version>${version}</version>

          <scope>runtime</scope>

      </dependency>

       

      to:

      <dependency>

          <groupId>org.jboss.portletbridge</groupId>

          <artifactId>portletbridge-jsf2-depchain</artifactId>

          <version>${version}</version>

      </dependency>

       

      And a RichFaces4 portlet developer would change from including:

      <dependency>

          <groupId>org.jboss.portletbridge</groupId>

          <artifactId>portletbridge-api</artifactId>

          <version>${version}</version>

      </dependency>

      <dependency>

          <groupId>org.jboss.portletbridge</groupId>

          <artifactId>portletbridge-impl</artifactId>

          <version>${version}</version>

          <scope>runtime</scope>

      </dependency>

       

      to:

      <dependency>

          <groupId>org.jboss.portletbridge</groupId>

          <artifactId>portletbridge-richfaces4-depchain</artifactId>

          <version>${version}</version>

      </dependency>

       

       

      Any thoughts or comments on the above are greatly appreciated, especially if anyone has a particular view as to whether this is a good, bad or indifferent idea.