Mitkees & Webcenter

Into the charm of Oracle Webcenter and ADF

Tag Archives: Webcenter

Change the webcenter portal language selector task flow to be links instead of popup

The current portal language selector is a popup that shows the available languages to select from .

what if you need to create links or drop down with 2 languages only?!

you can use this code and pass the locale to the parameters

 <af:commandLink styleClass="topNavLinks frlink" rendered="#{facesContext.externalContext.requestLocale eq 'en'}" partialSubmit="false" id="frlink" actionListener="#{o_w_wa_chooseLanguage.changeLanguage}" text="French">
<f:attribute name="wcLangId" value="fr"/>
<af:commandLink styleClass="topNavLinks enlink" rendered="#{facesContext.externalContext.requestLocale eq 'fr'}" partialSubmit="false" id="enlink" actionListener="#{o_w_wa_chooseLanguage.changeLanguage}" text="English">
<f:attribute name="wcLangId" value="en"/>

Webcenter portal & ADF Responsive

After implementing ADF & portal responsive I have concluded many hints to follow while implementing
The main problem of the responsive it that adf components render as table
1- Limit the use of the components that render tables in the html dom and use html code if needed in verbatim tag
2- Limit the use of layout component that has tables or horizontal layout as it render in tables
• Preferably use bootstrap templates.
• Create templates with panelgrouplayout vertical & default and create a custom style class to make it to horizontal example ;


• In portal use panel customizable under each other don’t implement it horizontal preferably add it in panelgrouplautout and use the above class & css to draw your page.
• Do the responsive in one CSS file and import it in your template and use media queries inside it.
• All width should in percentage. You may use with for small components on the page but that would be difficult in responsive.
• If you are obliged or have to use component that have fixed width use java script to change the width in responsive.

Webcenter Sites Vs. Webcenter Portal

After Oracle acquired FatWire Software , Oracle completed its suite with a powerful web content management solution for business users.

Webcenter Sites we used to develop websites that is connected with the Webcenter content using WCM, by creating templates and data files and store them at the Webcenter content server which enables direct editing and contribution.

Webcenter Sites is a powerful web content management solution where has the capablilty of  creating,  and publishing business-user websites focused on  targeted audiences.

on the other hand Webcenter portal framework designed for intranet and extranet which has the capabilities of interaction and sharing , which integrate with SOA / Webcenter content  to provide services as document services , workflows and business processes.

Full Text Search In Webcenter Content “UCM” using java and RIDC API

To Search UCM using Java Code and RIDC we have to change an attribute in the config file of the UCM which you can find under this path


you will find and attribute called ” SearchIndexerEngineName” set to OracleTextSearch

SearchIndexerEngineName=OracleTextSearch      comment it and add the following command


Then you can call the RIDC API from Java code as follows to us the Full text Search


IdcClientManager manager = new IdcClientManager();
IdcClient idcClient = manager.createClient(“idc://serverip:4444”);

IdcContext userContext =
new IdcContext(“username”, “password”); // populate the binder with the parameters
DataBinder binder = idcClient.createBinder();

binder.putLocal(“IdcService”, “GET_SEARCH_RESULTS”);
“dDocFullText <substring> <qsch>” + “your query” +”</qsch>”);
binder.putLocal(“SearchEngineName”, “databasefulltext”);
binder.putLocal(“ResultCount”, “20”);

ServiceResponse response = idcClient.sendRequest(userContext, binder);
DataBinder serverBinder = response.getResponseAsBinder();
binder = response.getResponseAsBinder();

DataResultSet resultSet =binder.getResultSet(“SearchResults”); // loop over the results
for (DataObject dataObject : resultSet.getRows()) {
System.out.println(“Title is: ” + dataObject.get(“dDocTitle”));
System.out.println(“Author is: ” + dataObject.get(“dDocAuthor”));



restart the UCM and start indexing again.

Webcenter Spaces Vs Webcenter Portal

This post is collection of different of business opinions of developers and business consultants in addition to mine; a result of different reading and previous experience.

Oracle WebCenter Framework is an Oracle JDeveloper design-time extension that breaks down the boundaries between Web-based portals and enterprise applications. It also provides the runtime portal and Web 2.0 framework on which all Oracle WebCenter technology runs.

Webcenter portal:
Oracle WebCenter Portal delivers intuitive user experiences for enterprise applications. This complete, open and integrated enterprise portal and composite applications solution enables the development and deployment of internal and external portals and websites, composite applications and mashups with integrated social and collaboration services and enterprise content management capabilities

Webcenter spaces:
Oracle WebCenter Spaces is a ready-to-use application that pulls together the capabilities of all the WebCenter Services to empower teams to quickly and efficiently manage their information, applications, projects, and people without requiring IT assistance. It brings together the latest technology around social computing, communities, personal productivity, and ad-hoc team interactions with no development effort. Oracle WebCenter Spaces allows users to work more effectively with project teams and work groups, including teams that span multiple geographies and include external members. It eliminates or reduces duplication of efforts and content inconsistencies, and it enables sharing valuable team resources to solve business problems, tap into new ideas, and reduce time to market.

Now we have to evaluate the pros and cons of webcenter portal vs. webcenter spaces

The difference between Spaces and a custom WebCenter App is not only related to the use of all the Enterprise 2.0 services.

There are some general guidelines that you can follow that can make your choice easier.
For example,
• If you require lots of customizations and flexibility than a webCenter app is the way to go.
• If you require features that are specific to spaces like personal pages or events than you also require Spaces. Especially the personal pages part. If this is one of the requirements than you will have a hard time developing this in a custom webcenter app.

• When you require different group spaces, you will also go for WebCenter spaces because such a concept is very hard to build for yourself.

Development cost

Spaces are more an ootb environment that doesn’t require lots of development. If you have lots of requirements that require custom development than a custom webcenter app is needed.

One of the questions is: What is a lot of development?

If you need the functionality that Spaces offers, you can extend it with your own task flows, templates etc.
In this case, you use Spaces as ‘framework’ to expose your task flows.

On the other hand, if you have tight navigation and more business logic between task flows, you might want to expose Web Center services in your application.

Design in spaces and portal

For the CSS design (and skinning in general) with WebCenter will be different than doing design with Oracle Portal. My thoughts on the divide:

1) If your need is something that is more ‘social and collaborative’, then Spaces may be the best place to start.

2) If your need is more informational in a traditional portal sense with custom designs, etc. – then a WebCenter Portal (custom) app might be the better place to start.

The advantages of spaces over portal.

• Application will connect to LDAP repository (AD/OID) for authentication and authorization. Weblogic will do this for you.

• A Home Page / Landing Page. You need to customize here. Most of the effort goes here.

• Users will have Access to Group Spaces, Role Based access. OOTB

• Group Spaces may have different services like documents, Announcement/Discussions. OOTB feature.

• Ability to create pages by selecting your custom page templates during run time, in context editing, skinning. OOTB + Customization.

• Ability to enable / disable services, etc . OOTB.

However, if you need full control of your code then ADF Portal will be better . The above feature is bit difficult in Portal but possible and may need more man power.


Starting from 12c ; there will be no webcenter portal framework . there will be webcenter portal only (builder or spaces).


%d bloggers like this: