Thursday, May 8, 2014

How to enable SiteStudio component in UCM


This blog explains about enabling 'SiteStudio' in UCM

Login to 'UCM Admin Console' , and follow below highlighted steps as shown below, You must restart the UCM server after making any changes in order to effective those changes.

http://localhost16200/cs/login/login.htm


Unable to connect to UCM Server though status shows RUNNIN


If you have installed first time UCM on your machine,  started UCM server from Weblogic console and trying to connect to UCM from JDeveloper. If Test connection fails ensure to start UCM server using statManagedWeblogic.sh <UCM_ServerName> , This will start UCM server and able to connect using Jdeveloper.

Wednesday, May 7, 2014

How to Build Webcenter template ?



A template in WebCenter (or an ADF application) is nothing more than a JSPX page with additional tags to define some regions. This means that you can use all the existing ADF or WebCenter components in your template.

Before we begin we must create the template JSPX file. In WebCenter, all templates should be added to the pagetemplates folder. If you don't do this, your template can not be used during runtime.

- Create the JSF Page template as shown below


Every template contains facets. A facet can be seen as a region in a template. It defines a section of the template that can be uses by other pages. You will create facets for each region that can be modified by the pages using this template. In our case, we don't allow the other pages to modify the header, footer and so on. We only allow them a section to insert their own content.

In WebCenter, a template should always have a facet called content. This facet will be used by the composer to make the page editable during runtime. Without the content facet, the composer can't do anything on the page so must add it.


- Modify the newly created template as per your requirement, After updating required changes to the template, then right click on template and choose 'Create Portal Resource' option as shown below. This will make available for the portal, so that we can use this template at runtime.


- By default, this newly created template will be in 'Hidden' status, you have to make it 'Available'. this can be done by
- Select the template, choose 'Edit' button then choose 'Show' button

- To make the newly created template as default template, then select 'Configurations' tab, choose the template that you want to make it as default as shown below.
- You don't need to worry about 'Saving' these changes, by default all your changes will be automatically saved.
- If you get any NPE(Null Pointer Exception), ensure you have to generate the page definition file for newly created template.

- If you want to make the newly created template should be default template for your entire application, that means whenever you create new page that will extends to this template, you have to open 'adf-config.xml' and modify the below highlighted entry to the template whatever you want.

- If you want to modify already created pages, then open the page and modify the 'pageTemplate' attribute.


How to Create a page in Webcenter using Admin Console


This blog outlines very basic feature of webcenter portal application, that is how to create a page at runtime using Administration console

- Launch your local Webcenter admin console , Create a sample Webcenter Portal Framework application, Right click on 'Portal' project and run
- Below is the localhost URL you will see
   http://localhost:7101/HelloWorldPortalApp-Portal-context-root/index.html

- Enter default login credentials i.e weblogic/weblogic1
- After successful login, click on 'Administration Console' tab on the top right hand side of the page
- Click on 'Create Page' link as shown below
- Enter the page name
- Choose the available page template if needed.
- Choose the page style and click on 'Create' button, Below is how newly created page(HelloWorld) will be displayed
- To add the content to the newly created page, Select the down arrow in 'Actions' column and choose 'Edit Page' option
- Click on 'Add Content' link to add your own content
- This is how newly created page look like
- This newly created page will not be stored in Jdeveloper application, instead this will be stored in MDS(Meta Data Service), All webcenter run time customization will be stored in MDS

- To enable MDS for an application, Follow below step
- Right click on application, Choose Application Properties, Expand 'Run' and choose MDS. Select 'Preserve customizations across application runs'
- Try now by creating new page at runtime, stop the server and start it you will see the newly created page always.