How to manually build an application for Pluto 2.0.3, using ICEfaces EE 3.3 P05

compared with
Current by Judy Guglielmin
on Apr 18, 2018 13:10.


 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 1 changes. View first change.

  For pluto 2.0.3 and ICEfaces-3.3.0_P05 and newer releases, the following Liferay jars are to be used:-
  For pluto 2.0.3 and ICEfaces-3.3.0_P05 and newer releases, the following Liferay jars are to be used (See http://www.liferayfaces.org/):-
  
  <dependency>
  <groupId>com.liferay.faces</groupId>
  <artifactId>com.liferay.faces.bridge.ext</artifactId>
  <version>2.0.1</version>
  </dependency>
  <dependency>
  <groupId>com.liferay.faces</groupId>
  <artifactId>com.liferay.faces.bridge.impl</artifactId>
  <version>3.1.0</version>
  </dependency>
  
  
 If /WEB-INF/portlet.xml is not there already, create a new file with the name portlet.xml, whose root element is as follows:
  
 {code:xml}
 <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
  version="2.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
  
 </portlet-app>
 {code}
  
 In portlet.xml, there must be an entry for each portlet like the one below:
  
 {code:xml}
  <portlet>
  <portlet-name>myPortlet</portlet-name>
  <display-name>My Portlet</display-name>
  <portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
  <init-param>
  <name>javax.portlet.faces.defaultViewId.view</name>
  <value>/portlet-view.xhtml</value>
  </init-param>
  <init-param>
  <name>org.icefaces.demo.viewPath</name>
  <value>/resources/myPortlet/myPortlet.xhtml</value>
  </init-param>
  <supports>
  <mime-type>text/html</mime-type>
  <portlet-mode>view</portlet-mode>
  </supports>
  <portlet-info>
  <title>My Portlet</title>
  <keywords>My Portlet keywords</keywords>
  </portlet-info>
  </portlet>
 {code}
  
 Make sure to replace 'myPortlet', 'My Portlet', 'My Portlet keywords', and '/resources/myPortlet/myPortlet.xhtml' for the right names and values of your portlet.
  
 In /WEB-INF/web.xml, there must be the following two entries for each portlet.
  
 {code:xml}
  <servlet>
  <servlet-name>myPortlet</servlet-name>
  <servlet-class>org.apache.pluto.container.driver.PortletServlet</servlet-class>
  <init-param>
  <param-name>portlet-name</param-name>
  <param-value>myPortlet</param-value>
  </init-param>
  <load-on-startup>1</load-on-startup>
  </servlet>
  
  <servlet-mapping>
  <servlet-name>myPortlet</servlet-name>
  <url-pattern>/PlutoInvoker/myPortlet</url-pattern>
  </servlet-mapping>
 {code}
  
 Make sure to replace the four occurrences of 'myPortlet' for the name of your portlet, which must match with the portlet name of the entry in portlet.xml.
  
 No other configuration files are necessary for Pluto other than faces-config.xml, which doesn't need to be modified for portlets.
  
 Once, all this has been configured for each portlet, save the files, and build a ZIP file of the entire unzipped folder, which should now contain all these modifications and additions. Finally, change the extension of this ZIP file to .war. You may now deploy your application on Pluto 2.0.3.

© Copyright 2021 ICEsoft Technologies Canada Corp.