System News
Tech Tips for the Sun Java System
Nested Tab Container and Extended Desktop Layout
March 29, 2004,
Volume 73, Issue 5

Two tech tips on the Sun JavaTM System Portal Server are available online: One on how to create a nested tab container on the portal with portal server; and another on how to extend the JSPTableContainerProvider class of portal server and support one more layout on the portal. For both of these tech tips, the sample portal that is shipped with Sun Java System Portal Server will need to be installed.

"Creating a Nested Tab Container on the Portal"

On a portal, a nested tab container is one that is enclosed within another tab container. For more streamlined organization, you can use a nested tab container to group tabs inside another tab. As a result, fewer tabs clutter the portal. Authors Rama Talasila and Marina Sum illustrate how to create a nested tab container on the portal with portal server. The steps are described in the following sections on the Web site:

  • Creating a Nested Tab Container
  • Adding Tabs to the Nested Tab Container
  • Configuring the Nested Tab Container
  • Adding the Nested Tab Container to the Parent
  • Creating JavaServer PagesTM (JSPTM) components for the Nested Tab Container
  • Testing the New Container

http://developers.sun.com/prodtech/portalserver/reference/techart/nestedtabcontainer.html

"Extending the Desktop Layout on the Portal"

Authors Cathy Wu and Marina Sum explain in their how-to tech tip: The desktop table container in the sample portal provides three default layouts for a column-based desktop: thin-wide, wide-thin and thin-wide-thin. Each column in the table container is designated as "thin" or "wide" according to the relative screen real estate. Likewise, the channels are also assigned as "thin" or "wide," with the thin channels displayed in the thin column and the wide channels in the wide column. For example, a thin-wide layout displays the channels in two columns, the thin one occupying about 30 percent of the screen and the wide one, about 70 percent.

Occasionally, you may desire a different table layout for the portal. Their article shows you how to extend the JSPTableContainerProvider class of portal server and support one more layout on the portal: the thin-thin-thin layout (see the diagram online).

Similarly, to create yet another layout, follow the same procedure as described in the tech tip with the appropriate customizations in the JavaTM class and the JSP files.

The steps are described in these sections online:

  • Extending JSPTableContainerProvider
  • Defining the Display Profiles
  • Modifying the Channel Properties
  • Creating and Populating Provider and Layout Container Directories
  • Customizing the JSP Pages for the Layout Container
  • Testing the New Container

The authors provide links to more examples that demonstrate the JSPTableContainer and on how to customize the desktop layout.

http://developers.sun.com/prodtech/portalserver/reference/techart/layout

Read More ... [...read more...]

Keywords:

fullsource
 




Other articles in the Sun Java System section of Volume 73, Issue 5:

See all archived articles in the Sun Java System section.





Popular Articles in Vol 183, Issue 3


News and Solutions for Users of Solaris, Java and Oracle's Sun hardware products
Just the news you need, none of what you don't – 42,000+ Members – 24,000+ Articles Published since 1998