WebSphere Portal"

From Documentation
m
m
Line 51: Line 51:
 
*Export the project as a war file
 
*Export the project as a war file
  
=Deploy ZK portlet in WebSphere Portal=
+
=Deploy ZK portlet in WebSphere Portal 7=
 
*Browse http://localhost:10039/wps/portal and login with admin account
 
*Browse http://localhost:10039/wps/portal and login with admin account
 
*Click ''Administration'' tab at the top of the page
 
*Click ''Administration'' tab at the top of the page
Line 75: Line 75:
 
*ZK project is now deployed in a Websphere Portal
 
*ZK project is now deployed in a Websphere Portal
 
:[[File:websphere11.png|800px]]
 
:[[File:websphere11.png|800px]]
 +
 +
=Deploy ZK portlet in WebSphere Portal 8=
 +
*Browse http://localhost:10039/wps/portal and login with admin account
 +
*Click ''Administration'' tab at the top of the page
 +
:[[File:websphere_v8_01.png|800px]]
 +
*Select ''Web Module'' then click the ''install'' button.
 +
:[[File:websphere_v8_02.png|800px]]
 +
*Click ''Choose File'' button to select the war file then press the ''Next'' button.
 +
:[[File:websphere_v8_03.png|800px]]
 +
*Check the war information and choose ''Start application'', then click the ''Finish'' button.
 +
:[[File:websphere_v8_04.png|800px]]
 +
*Go back to ''Home'' page
 +
:[[File:websphere_v8_05.png|800px]]
 +
*Add a new tab page by clicking ''Action'' -> ''EditPage''
 +
:[[File:websphere_v8_06.png|800px]]
 +
*Click ''New Page'' then enter "Page name" and "Friendly URL Name"
 +
:[[File:websphere_v8_07.png|800px]]
 +
:[[File:websphere_v8_08.png|800px]]
 +
*Add the deployed portlet to the created new page by clicking ''Action'' -> ''EditPage''.
 +
*Click ''Customize'' -> ''All'' -> in the search box, enter the portlet name defined in portlet.xml
 +
:[[File:websphere_v8_09.png|800px]]
 +
*Drag and drop the portlet into the created new page and click ''Save & Exit'' button.
 +
:[[File:websphere_v8_10.png|800px]]
 +
*ZK project is now deployed in a Websphere Portal
 +
:[[File:websphere_v8_11.png|800px]]
  
 
=Version History=
 
=Version History=

Revision as of 09:16, 30 January 2013


Setting up Websphere Portal

Create ZK portlet project

since 6.0.1
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app version="2.0"
	xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
	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>
		<portlet-name>zk</portlet-name>
		<display-name>zk</display-name>
		<portlet-class>org.zkoss.zk.ui.http.DHtmlLayoutPortlet</portlet-class>
		<init-param>
			<name>zk_page</name>
			<value>/index.zul</value> <!-- the main page of portlet -->
		</init-param>
		<expiration-cache>0</expiration-cache>
		<supports>
			<mime-type>text/html</mime-type>
		</supports>
		<portlet-info>
			<title>zk</title>
			<short-title>zk</short-title>
			<keywords>zk</keywords>
		</portlet-info>
		<security-role-ref>
			<role-name>administrator</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>guest</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>power-user</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>user</role-name>
		</security-role-ref>
	</portlet>
</portlet-app>
  • Export the project as a war file

Deploy ZK portlet in WebSphere Portal 7

Websphere01.png
  • Select Web Module then click the install button.
Websphere02.png
  • Click Choose File button to select the war file then press the Next button.
Websphere03.png
  • Check the war information and choose Start application, then click the Finish button.
Websphere04.png
  • Go back to Home page
Websphere05.png
  • Add a new tab page by clicking Action -> EditPage
Websphere06.png
  • Click New Page then enter "Page name" and "Friendly URL Name"
Websphere07.png
Websphere08.png
  • Add the deployed portlet to the created new page by clicking Action -> EditPage.
  • Click Customize -> All -> in the search box, enter the portlet name defined in portlet.xml
Websphere09.png
  • Drag and drop the portlet into the created new page and click Save & Exit button.
Websphere10.png
  • ZK project is now deployed in a Websphere Portal
Websphere11.png

Deploy ZK portlet in WebSphere Portal 8

Websphere v8 01.png
  • Select Web Module then click the install button.
Websphere v8 02.png
  • Click Choose File button to select the war file then press the Next button.
Websphere v8 03.png
  • Check the war information and choose Start application, then click the Finish button.
Websphere v8 04.png
  • Go back to Home page
Websphere v8 05.png
  • Add a new tab page by clicking Action -> EditPage
Websphere v8 06.png
  • Click New Page then enter "Page name" and "Friendly URL Name"
Websphere v8 07.png
Websphere v8 08.png
  • Add the deployed portlet to the created new page by clicking Action -> EditPage.
  • Click Customize -> All -> in the search box, enter the portlet name defined in portlet.xml
Websphere v8 09.png
  • Drag and drop the portlet into the created new page and click Save & Exit button.
Websphere v8 10.png
  • ZK project is now deployed in a Websphere Portal
Websphere v8 11.png

Version History

Last Update : 2013/01/30


Version Date Content
     



Last Update : 2013/01/30

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.