Showing posts with label webcenter. Show all posts
Showing posts with label webcenter. Show all posts

Saturday, October 26, 2013

Content Integration through WebCenter Pagelets in WebCenter 11.1.1.8

Introduction
In this blogpost I am going to show how to integrate web content into WebCenter Pages by using a so called Pagelets - created by the WebCenter Pagelet Producer.

The Pagelet technology is pretty powerful. It acts like a proxy and works as a clipper for remote web content. It has its roots in WebCenter Ensemble and before that in Plumtree.

Prerequisites
The Pagelet Producer is part of a separate application (pagelet-producer) that by default runs on the WC_Portlets Managed server. So make sure that server is running.

Create a pagelet
To create a pagelet open the WebCenter Pagelet Producer Console at http://localhost:8889/pagelets/admin and login with the weblogic admin user.

Step 1: Create new Resource
Next: Select Producer Type: Web
Next: Give it a name, Define the Source URL etc.

Next: Define a pagelet: bundesliga-tabelle. The URL-Suffix is used to identify a specific resource from the source URL.

Now move on and create a new clipper. (With a clipper we actually are going to clip a portion of the source web page)

Next comes the most interesting + impressive part. Choose 'Content' and launch clipper. There you will be able to open the source web page in the clipper and choose the desired region:
As a result the 'clipping path' is updated. Save all changes.

Now we can test the pagelet under the 'Documentation" item.
As you can see the Pagelet is embeddable in any simple web page, not only WebCenter based.

Calling the the Pagelet URL in a new Browser-Tab we see that our pagelet is working. 
BTW: All Links are rewritten by default so it is working through the pagelet producer proxy. The clipped content can further be customized through so called 'Injectors' but I am not going to show that in this blog post. Please refer to the documentation (see links below).

Use Pagelets in the Portal Builder
To use the created pagelets in WebCenter Portal, the pagelet producer needs to be registered first.
Go to WebCenter Portal Administration > Tools and Services > Portlet-Producer. Choose 'Register'. Provide the given Producer URL as shown below.
Clicking on OK brings you to the overview page. The created pagelets should show up for the registered provider.
Next. Check if the Pagelets are listed under  "Shared Assets > Pagelets".

Now we can add the pagelets by using Portal Builder for a custom page. In the Portal Builder from the catalog choose ' UI Components > Pagelet-Producer > enpit Pagelets > 'pagelet-libraryname' > 'pagelet' ' and add it by drag and drop to your page. In my sample it looks like that

Save the page and open in view mode

That's it. WebCenter Pagelets - a great, powerful technology!

Gotchas
A) The pagelets is embedded inside an iframe by default. If I disable that option
there is an exception in the Portal Builder

I guess Portal Builder tries to embed  all the css, javascript, etc into the main web page which leads to an error. Just my assumption. If anyone knows more please comment!

B) The UI of the WebCenter Pagelet Producer Admin Console is really poor in terms of usabiliy, UX, etc. I hope it will be improved or/and will be embedded into WebCenter Portal Administration.

Related documentation

Wednesday, August 21, 2013

WebCenter: Checking the installed version information

Use Case

While installing WebCenter Portal 11.1.1.8 you will see a screen like the following during the domain creation

First I thought there is something wrong but beeing some time with Oracle technology now I know that these version information might just not be the one you really installing.

So the purpose of this post is to double check the WebCenter version once installed.

Check installed versions with OPatch

Create a checkversion.sh script like the following

export MW_HOME=/oracle/fmwhome11118
export ORACLE_HOME=$MW_HOME/Oracle_WC1
export JAVA_HOME=/oracle/javahome/jdk1.6.0_29
export PATH=$JAVA_HOME/bin:$PATH

java -version

$ORACLE_HOME/OPatch/opatch lsinventory -details -jdk $JAVA_HOME

The setting of Oracle is needed in order to run OPatch successfully.
Next run the script from the command line:

[oracle@soabpm-vm fmwhome11118]$ sh checkversion.sh
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)
Oracle Interim Patch Installer version 11.1.0.9.9
Copyright (c) 2012, Oracle Corporation.  All rights reserved.


Oracle Home       : /oracle/fmwhome11118/Oracle_WC1
Central Inventory : /oracle/oraInventory
   from           : /oracle/fmwhome11118/Oracle_WC1/oraInst.loc
OPatch version    : 11.1.0.9.9
OUI version       : 11.1.0.9.0
Log file location : /oracle/fmwhome11118/Oracle_WC1/cfgtoollogs/opatch/opatch2013-08-17_06-35-49AM_1.log


OPatch detects the Middleware Home as "/oracle/fmwhome11118"

Lsinventory Output file location : /oracle/fmwhome11118/Oracle_WC1/cfgtoollogs/opatch/lsinv/lsinventory2013-08-17_06-35-49AM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

Oracle WebCenter Portal Suite 11g                                    11.1.1.8.0
There are 1 products installed in this Oracle Home.


Installed Products (42):

Application Server 11g Cloning Component                             11.1.1.8.0
Installer SDK Component                                              11.1.0.9.0
Jython                                                               11.1.1.7.0
Oracle Bali Share                                                    11.1.1.7.0
Oracle Business Process Management Process Spaces                    11.1.1.7.0
Oracle Display Fonts                                                 11.1.1.7.0
Oracle Extended Windowing Toolkit                                    11.1.1.7.0
Oracle Fusion Middleware Admin Config                                11.1.1.6.0
Oracle Help for Java                                                 11.1.1.7.0
Oracle Help for the Web - UIX                                        11.1.1.7.0
Oracle Help for the Web Shared Library                               11.1.1.7.0
Oracle Help Share Library                                            11.1.1.7.0
Oracle Ice Browser                                                   11.1.1.7.0
Oracle Jakarta                                                       11.1.1.7.0
Oracle JFC Extended Windowing Toolkit                                11.1.1.7.0
Oracle JGroups                                                       11.1.1.7.0
Oracle JSCH                                                          11.1.1.7.0
Oracle One-Off Patch Installer                                       11.1.0.9.9
Oracle Remote Diagnostic Agent                                       11.1.1.7.0
Oracle Remote Intradoc Client                                        11.1.1.8.0
Oracle SOA workflow                                                  11.1.1.7.0
Oracle UIX                                                           11.1.1.7.0
Oracle Universal Installer                                           11.1.0.9.0
Oracle Upgrade Assistant                                             11.1.1.8.0
Oracle Upgrade Assistant                                             11.1.1.8.0
Oracle Upgrade Assistant for Webcenter                               11.1.1.8.0
Oracle WebCenter Portal Suite                                        11.1.1.8.0
Oracle WebCenter Portal Suite 11g                                    11.1.1.8.0
Oracle WebCenter Portal: Activity Graph                              11.1.1.8.0
Oracle WebCenter Portal: Analytics Collector                         11.1.1.8.0
Oracle WebCenter Portal: Discussions Server                          11.1.1.8.0
Oracle Webcenter Portal: Framework                                   11.1.1.8.0
Oracle Webcenter Portal: Framework Core                              11.1.1.8.0
Oracle WebCenter Portal: Pagelet Producers                           11.1.1.8.0
Oracle WebCenter Portal: Personalization                             11.1.1.8.0
Oracle Webcenter Portal: Portlet Server                              11.1.1.8.0
Oracle WebCenter Portal: RCU                                         11.1.1.8.0
Oracle Webcenter Portal: Spaces                                      11.1.1.8.0
Oracle WebCenter Portal: Suite Components                            11.1.1.8.0
Oracle WebCenter Portal: Wiki                                        11.1.1.8.0
Oracle WebLogic Communications Service Client Library                11.1.1.7.0
OracleAS Documentation                                               11.1.1.8.0
There are 42 products installed in this Oracle Home.


There are no Interim patches installed in this Oracle Home.


--------------------------------------------------------------------------------

OPatch succeeded.
[oracle@soabpm-vm fmwhome11118]$

Further information
If you want to try out WebCenter follow the links for more information

Download WebCenter Portal 11.1.1.8

Neue Features und Ă„nderungen in WebCenter Portal  11.1.1.8.0
http://docs.oracle.com/cd/E29542_01/doc.1111/e27603/whatsnew.htm#sthref8

See more Screenshots of the WebCenter Portal  11.1.1.8.0 on our german blog
http://www.enpit.de/webcenter-portal-11-1-1-8-mit-zahlreichen-neuerungen/