Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-36125

Upgrade Plugins SDK JSF portlet templates to Liferay Faces 3.1.2-ga3

    Details

      Description

      This task involves FIVE parts:

      Part 1: Fix the following FQCN typo in log4j.properties:

      log4j.logger.com.liferay.faces.bridge.lifecycle.BridgeDebugPhaseListener=DEBUG

      By changing it to this:

      log4j.logger.com.liferay.faces.util.lifecycle.DebugPhaseListener=DEBUG

      (Note that this should have been fixed with LPS-29049)

      Part 2: Modify the following ivy.xml descriptors:

      https://github.com/liferay/liferay-plugins/blob/master/tools/portlet_icefaces_tmpl/ivy.xml
      https://github.com/liferay/liferay-plugins/blob/master/tools/portlet_jsf_tmpl/ivy.xml
      https://github.com/liferay/liferay-plugins/blob/master/tools/portlet_liferay_faces_alloy_tmpl/ivy.xml
      https://github.com/liferay/liferay-plugins/blob/master/tools/portlet_primefaces_tmpl/ivy.xml
      https://github.com/liferay/liferay-plugins/blob/master/tools/portlet_richfaces_tmpl/ivy.xml

      Specifically:

      • Upgrade Liferay Faces dependencies to 3.1.2-ga3
      • Upgrade Mojarra dependencies to 2.1.21
      • Upgrade ICEfaces to version 3.3.0
      • Upgrade PrimeFaces to version 3.5
      • Upgrade RichFaces to version 4.3.2.Final

      Part 3: Explicitly specify order of startup listeners in web.xml descriptors in Plugins SDK JSF portlet templates.

      As described in FACES-1483, the Mojarra ConfigureListener and Liferay Faces BridgeSessionListener must be explicitly specified in web.xml in order to guarantee order of registration by the servlet container.

      The following files will be affected:
      https://github.com/liferay/liferay-plugins/blob/master/tools/portlet_icefaces_tmpl/docroot/WEB-INF/web.xml
      https://github.com/liferay/liferay-plugins/blob/master/tools/portlet_jsf_tmpl/docroot/WEB-INF/web.xml
      https://github.com/liferay/liferay-plugins/blob/master/tools/portlet_richfaces_tmpl/docroot/WEB-INF/web.xml

      The Mojarra listener will be specified by default:

      <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>
      

      Part 4: Add the WEB-INF/weblogic.xml descriptor for deployment on WebLogic Server

      <?xml version="1.0" encoding="UTF-8"?>
      <wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd">
      	<wls:container-descriptor>
      		<wls:prefer-application-packages>
      			<wls:package-name>com.sun.xml.bind.*</wls:package-name>
      			<wls:package-name>org.apache.commons.fileupload.*</wls:package-name>
      			<wls:package-name>org.apache.xerces.*</wls:package-name>
      		</wls:prefer-application-packages>
      		<wls:optimistic-serialization>true</wls:optimistic-serialization>
      		<wls:show-archived-real-path-enabled>true</wls:show-archived-real-path-enabled>
      	</wls:container-descriptor>
      </wls:weblogic-web-app>
      

      Part 5: Add <instanceable>false</instanceable> to liferay-portlet.xml

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 10 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.30 EE GA3
                  6.2.0 CE B1