Consuming Hello World pagelet in WebCenter Spaces
By astemkov on Nov 22, 2011
The goal of this exercise is to show how you can use Hello World pagelet that you just created from your web space.
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"
- 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 "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".