Consuming Hello World pagelet in WebCenter Spaces

Posted by astemkov on Oracle Blogs See other posts from Oracle Blogs or by astemkov
Published on Tue, 22 Nov 2011 16:34:42 -0600 Indexed on 2011/11/23 2:04 UTC
Read the original article Hit count: 566

Filed under:

Introduction

The goal of this exercise is to show you how can you 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:

© Oracle Blogs or respective owner

Related posts about /Pagelet Producer