Tuesday, July 19, 2011

OAF ContentContainer Region

ContentContainer region is used to display additional information on a page. Content container gives different look and feel to its content compared to other regions of OAF page.

Corresponding web bean: oracle.apps.fnd.framework.webui.beans.layout.OAContentContainerBean
UI property "Background Shade" (setBackground() method of bean) is used to set the background color.

Usage:

Though Content Container can be used anywhere in the OAF Page, it is typically placed at the side of the page in a dedicated column.

Below images are examples of usage of Content Container:



Implementation Approaches:

A) Within Page Content (Source: OAF Dev Guide)
This will not provide better look and feel. But in case if requirement is such, then go ahead and create a region with "ContentContainer" style. Create content container region like any other region for example Header etc.
  
B) At the side of your page (Source: OAF Dev Guide)
  1. Create a shared region for your content container.
  2. Programmatically add the shared region to the end area by writing following code in processRequest method:
OAContentContainerBean content = (OAContentContainerBean)createWebBean (pageContext,
    "<full path of the shared content container region>",
    null, // ignore item for regions
    true); // using OAExtension

// Get the page layout bean
OAPageLayoutBean pageLayoutBean =
    pageContext.getPageLayoutBean();

// Specify the content container as the end content.
pageLayoutBean.setEnd(content);

C) At the side of your page using TableLayout:
  1. This approach is not mentioned in Dev Guide and is very effective and very easy. This doesn't involve any Java programming.
  2. All you need to do is develop the layout of your page using the TableLayout region.
  3. Use the last column for ContentContainer.
  4. Using shared region is optional.

2 comments:

  1. can you please explain detail for "At the side of your page using TableLayout" Implementation Approaches for ContentContainer

    ReplyDelete
  2. can you please explain detail for "At the side of your page using TableLayout" Implementation Approaches for ContentContainer.. please Help us....

    ReplyDelete