Uploaded image for project: 'PUBLIC - Liferay Maven'
  1. PUBLIC - Liferay Maven
  2. MAVEN-86

Update XML descriptors in JSF portlet archetypes for better compatibility with Liferay Faces GA4

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2.0 GA1
    • Component/s: Archetypes
    • Labels:
      None

      Description

      Overview

      This task involves updating various XML descriptors in the JSF portlet templates in the Plugins SDK for compatibility with Liferay Faces GA4.

      Zero-Config Registration of Listeners

      With the advent of FACES-1655 (zero-config of BridgeSessionListener) and FACES-1656 (discovery of Mojarra InjectionProvider during execution of JSF lifecycle), it is now possible to remove the following from the web.xml descriptors in the JSF portlet archetypes:

      <listener>
      	<listener-class&gt;com.sun.faces.config.ConfigureListener</listener-class&gt;
      </listener>
      <listener>
      	<listener-class&gt;com.liferay.faces.bridge.servlet.BridgeSessionListener</listener-class&gt;
      </listener>
      

      The following files are affected:
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-icefaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-jsf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-liferay-faces-alloy-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-primefaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-richfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml

      JSF Version in faces-config.xml

      Also, similar to FACES-1646, the JSF version in faces-config.xml needs to be upgraded to 2.1. The following files are affected:

      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-icefaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-jsf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-liferay-faces-alloy-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-primefaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-richfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml

      JSF Shared Library Reference for WebLogic

      Similar to FACES-1675, the jsf shared library needs to be added to all weblogic.xml descriptors.

      <wls:library-ref>
      	<wls:library-name>jsf</wls:library-name>
      </wls:library-ref>
      

      The following files are affected:

      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-icefaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/weblogic.xml
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-jsf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/weblogic.xml
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-liferay-faces-alloy-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/weblogic.xml
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-primefaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/weblogic.xml
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-richfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/weblogic.xml

      RichFaces Shared Library Reference for WebLogic

      Similar to FACES-1676, the richfaces shared library needs to be added to all weblogic.xml descriptors that use RichFaces.

      <wls:library-ref>
      	<wls:library-name>richfaces</wls:library-name>
      </wls:library-ref>
      

      The following file is affected:
      https://github.com/liferay/liferay-maven-support/blob/master/archetypes/liferay-portlet-richfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/weblogic.xml

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 4 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.0 GA1