Pages

Friday, October 23, 2009

Inter-portlets communication in Oracle Webcenter 11g

Assuming there are two portlets on one page: portlet1 and portlet2. And when making some changes on the portlet1, the portlet2 will make changes as well according to the value changes happening in portlet1.

How to make communication between portlets?

There is a property in each portlet called partialTriggers, which means the current portlet is listening to the one, whose id is the value of this property.

Here is a sample:

<adfp:portlet value="#{bindings.ParameterFormPortlet1_1}" id="portlet5" />

<adfp:portlet value="#{bindings.OmniPortlet1_1}" id="portlet1" renderPortletInIFrame="true" partialTriggers="portlet5"/>

From the above example, we now know portlet1 is listening to portlet5. Once portlet5 has some changes happening, it will trigger the portlet1 to refresh as well.

Monday, September 28, 2009

Webcenter Interaction and HTTP Proxy

To make WebCenter Interaction work with the HTTP proxy, you need to make some changes to the configuration files located in <wci_home>/settings.

In configuration.xml, you need to locate SystemProperties and change ServerName and HTTPPort to match your proxy server.

error when installing UCM

When installing the UCM in WinXP, I choosed the language as Chinese and it threw an error with the error code as 1057, which looked like

Error 1057:

After choosing English as its language, it was installed successfully.

Framebusing in ADF

Last time, we did a poc on webcenter 11g. There was a requirement to develop a new function as ADF application, and then integrated it into Webcenter 11g as web page.

When integrating it, it threw the error like this:

Warning: Unable to load content in a frame. Frame content will load at the top level.

After checking , there is a framebusting configuration in web.xml. If you wanna consume your ADF apps in a frame, you have to set it as "never".

Here is an example:

<context-param>
<param-name>oracle.adf.view.rich.security.FRAME_BUSTING</param-name>
<param-value>never</param-value>
</context-param>

After adding the above configuration in web.xml in your apps, it will be consumed in any other frames successfully.

google map view

http://code.google.com/apis/maps/documentation/examples/geocoding-simple.html

The above example from google website for your reference.

Most time we need the below APIs to get the latitude and longitude of a given address:

geocoder.getLatLng(address, ...)

JDeveloper 11g default weblogic user's password

When JDeveloper 11g is installed, once you test your application in default server engine in JDev, JDeveloper will create a new domain "Default Domian" and use the default weblogic server to test the applications developed.

The defaut administrator (weblogic) password for Weblogic Server is "weblogic1".

BTW, the default user and password is located in the boot.properties file under this folder: ../Application Data/JDeveloper/system11.1.1.1.33.53.92/DefaultDomain/servers/DefaultServer/security.

Monday, August 31, 2009

sounds path of Viewlet builder

Today i recorded sounds with slides in viewlet builder. After almost done, i found missing something in the first slide, which contains the audio as well.

Then i create a new slide with the modification inside. but i didn't wanna speak it again. So i tried to find out the one recorded in the original first slide and use that directly on my new slide.

After searching, the sounds were recorded with mp3 format and stored in the directory:

C:\Documents and Settings\<user>\Local Settings\Temp\qarbon\ViewletBuilder6 Professional_6191\documents\<viewlet_name>_qvp