In one of my previous posts I wrote about Web Clipping, this time I’ll like to write something about WebCenter Pagelet Producer :
- How to create a Resource
- How to extract Content
- How to Inject Content (In the extracted content)
- 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
- Oracle WebCenter Server
- Have WC_Portlet Managed Server Running
- Admin user (ex. weblogic)
- 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
To create a resource (Pagelet and its resources):
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.
Now the important part, the Pagelet.
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
To extract the content you’re looking for, go to the Clipper section and create a new one:
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.
Now let’s use a bit of Injection:
Select where do you want to inject your content, this can be as simple as a string.
Write the content you want to inject:
If you want to know how to access your Pagelet go to the Documentation section:
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.