WebCenter Pagelet Producer – Part 1

In one of my previous posts I wrote about Web Clipping, this time I’ll like to write something about WebCenter Pagelet Producer :

  1. How to create a Resource
  2. How to extract Content
  3. How to Inject Content (In the extracted content)
  4. How to consume a Pagelet

WebCenter Pagelet Producer

Allows you to publish content from back-end applications via pagelets. A pagelet is a reusable UI component that can run on any web page or web application. 

In other words is a Mashup Enabler.

Example: You have a requirement where you need to integrate different pieces of content from an external page/system into your Web Application/ Portal ( HR Intranet wants to display content from Finance Intranet)

Hands On

Requirements

  1. Oracle WebCenter Server
  2. Have WC_Portlet Managed Server Running
  3. Admin user (ex. weblogic)
  4. The URL of the Application where you want to extract information
    I’ll use infoMENTUM’s.

Login to WebCenter Pagelet Producer Admin:
http://server:8889/pagelets/admin

2014-04-05_2042
To create a resource (Pagelet and its resources):
2014-04-05_2042_002

2014-04-05_2043
For the Source URL make sure to keep it generic so in the future you can access all the levels of the Application (ex. http://www.infomentum.com/uk/). It’s recommended to always select DHTML Rewriting.
2014-04-05_2048
Now the important part, the Pagelet.
2014-04-05_2058
Insert the General information for your Pagelet.

In the URL Suffix include the rest of the URL to access the resource you want to access (ex. about-us/media-centre/videos-and-webcasts/generationc).

The final URL will look like this when browsed for Content: http://www.infomentum.com/uk/about-us/media-centre/videos-and-webcasts/generationc

2014-04-05_2139
To extract the content you’re looking for, go to the Clipper section and create a new one:
2014-04-05_2136_001
To extract content you have two different ways of doing it:
Graphical Clipper: It will open a window with the content URL so you select the piece of content you want to clip to your Pagelet.
Advanced Clipper: You need to add the tag and an attribute of that tag so it gets recognized by the Clipper.

 

2014-04-05_2140

 

2014-04-05_2141

 

2014-04-06_0300
Now let’s use a bit of Injection:
2014-04-06_1349
Select where do you want to inject your content, this can be as simple as a string.

2014-04-06_1354
Write the content you want to inject:

 

2014-04-06_1357
Final Result:2014-04-06_1402

If you want to know how to access your Pagelet go to the Documentation section:
2014-04-06_0242_001
You can select your preferred method for integration, REST or Javascript.

That’s it for a basic Pagelet I’ll talk about Advance Features in a following post.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: