Monday Dec 05, 2011

Consuming Hello World pagelet in WebCenter Interaction 10.3.0

Introduction

The goal of this exercise is to show how you can insert Hello World pagelet created here to the WebCenter Interaction portal.

You can also refer to this whitepaper for more details.

Assumptions

Let's assume the following:

  • Pagelet Producer is running on http://pageletserver.company.com:8889/pagelets/
  • WebCenter Interaction is running on http://wci.company.com:8080/
  • You created Hello_World pagelet as described here.

Register Pagelet Producer remote server

  • login to WCI as administrator
  • Click on Administration link at the top of the page. That will take you to Admin Objects Directory

Let's create PageletProducer folder where we are going to keep all Pagelet Producer related objects

  • Open Create Object combobox
  • Choose Administrative Folder
  • Type Name = PageletProducer
  • Click OK
  • Click on newly created PageletProducer folder

Now let's register our Pagelet Producer server with WCI

  • Open Create Object combobox
  • Choose Remote Server
  • Type Base URL = "http://pageletserver.company.com:8889/pagelets" (which is the address of our Pagelet Producer server)
  • Click Finish
  • Select "PageletProducer* folder
  • Type Save As = "Pagelet Producer Remote Server"
  • Click Save
  • We can see that "Pagelet Producer Remote Server" was created in "PageletProducer* folder

Creating Hello World Web Service

  • Open Create Object combobox
  • Choose Web Service - Remote Portlet
  • Click "Browse" button and select "Pagelet Producer Remote Server"
  • Click OK
  • In Portlet URL field type "inject/v2/portlet/MyLib/Hello_World?content-type=iframe&csapi=true&ifheight=300px"
    • "MyLib" is a library that contains our Hello World pagelet
    • "Hello_World" is a name of our Hello World pagelet
  • Click Finish
  • Select "PageletProducer* folder
  • Type Save As = "Hello World Web Service"
  • Click Save
  • "Hello World Web Service" is created:

Creating Hello World Portlet

  • Open Create Object combobox
  • Choose Portlet
  • From the list of templates or web services select Hello World Web Service
  • Click OK
  • Select the Type/Size you like and click "Finish"
  • Select "PageletProducer* folder
  • Type Save As = "Hello World Portlet"
  • Click Save
  • "Hello World Portlet" is created:

Using Hello World Portlet on the Home Page

Now let's navigate to My Pages -> Home Page

Here:
* Click "Edit Page"

* Drill into "PageletProducer" folder

* Click on "Hello World Portlet"

* Click on "Close Editor" button

Here's our "Hello World" pagelet inserted into Home Page in WCI:

About

astemkov

Search

Categories
  • Pagelet Producer
Archives
« December 2011 »
SunMonTueWedThuFriSat
    
1
2
3
4
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today