Tuesday Nov 22, 2011

Consuming Hello World pagelet in WebCenter Spaces

Introduction

The goal of this exercise is to show how you can use Hello World pagelet that you just created from your web space.

Assumptions

Let's assume the following:

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

For our exercise we will need a space created. So let's login into WebCenter Portal and create a space called "myspace" using "Portal Site" template:

Registering Pagelet Producer with WebCenter portal

In order to use our newly created pagelet from WebCenter Spaces, we first need to register Pagelet Producer:

  • Click "Administraion" link on WebCenter toolbar
  • Open the "Configuration" tab
  • Click on "Services" link on the upper-left corner of the page
  • Click on "Portlet Producers" link on the right hand pane of the screen
  • Click on "Register" button
  • Select "Pagelet Producer" radio button and type
    • Producer Name = "MyPageletProducer"
    • Server URL = http://pageletserver.company.com:8889/pagelets/
  • Click "Test" button
  • If everything is succesful you will see the following screen:
  • Now click "OK'. Pagelet producer is registered:

Inserting Hello World pagelet to WebCenter Space

Now let's insert Hello World pagelet into "myspace" page:

  • Let's go back to "myspace", click on the icon in a upper-right corner of the page and select "Edit Page"
  • Click on one of the "Add Content" buttons:
  • Select "Mash-Ups":
  • Select "Pagelet Producers:
  • You will see the MyPageletProducer that we just registered:
  • Click on it. You will see the library "MyLib" that contains our "Hello_World" pagelet.
  • Click on "MyLib" and you will see "Hello_World" pagelet. Click on "Add" button, and then "Close" button.
  • Click "Save" button, and then "Close".

Now we see that our "Hello World" pagelet is inserted into "myspace" page:

About

astemkov

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
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
   
       
Today