Sun Java System Portal Server 7.1 Developer Sample Guide

Changing Desktop Colors

Most of these colors are part of the global theme attributes. See Sun Java System Portal Server 7.1 Technical Reference for more information.

ProcedureTo Change the Desktop Colors

  1. Use the following table to determine what you want to change and what file you need to change. This two column table lists the Desktop component to customize in the first column, the files to edit in the second column, and the corresponding theme attribute in the third column.

    Desktop Component to Customize 

    File to Edit in PortalServer-DataDir/portals/portal-ID/desktop/default/ Directory

    Theme Attribute 

    Header background color 

    JSP-based containers: 

    • ./JSPSingleContainerProvider/header.jsp

    • ./JSPTabContainer/header.jsp

    • ./JSPTableContainerProvider/header.jsp

    • ./PredefinedFrontPageFramePanelContainerProvider/header.jsp

    • ./PredefinedFrontPageTabPanelContainerProvider/header.jsp

    • ./PredefinedSamplesTabPanelContainerProvider/header.jsp

    Frame-based containers: 

    • ./FrameTabContainer/banner.jsp

    • ./PredefinedSamplesFramePanelContainerProvider/header.jsp

    brandBgColor

    Footer background color 

    JSP-based containers: 

    • ./JSPSingleContainerProvider/menubar.jsp

    • ./JSPTabContainer/menubar.jsp

    • ./JSPTableContainerProvider/menubar.jsp

    • ./PredefinedFrontPageFramePanelContainerProvider/menubar.jsp

    • ./PredefinedFrontPageTabPanelContainerProvider/menubar.jsp

    • ./PredefinedSamplesTabPanelContainerProvider/menubar.jsp

    Frame-based containers: 

    • ./FrameTabContainer/menubar.jsp

    • ./PredefinedSamplesFramePanelContainerProvider/menubar.jsp

    brandBgColor

    Font color in the header and footer 

    The related JSPs are the header.jsp and menubar.jsp that listed in header background color and footer background color.

    headerFontColor

    Selected tab color 

    JSP-based containers: 

    ./JSPTabContainer/selectedTab.jsp

    Frame-based containers: 

    ./FrameTabContainer/selectedTab.jsp

    titleBarColor

    Content Page color 

    ./JSPContentContainer/contentLayoutBar.jsp ./JSPEditContainer/contentLayoutBar.jsp ./JSPLayoutContainer/contentLayoutBar.jsp ./TabJSPEditContainer/contentLayoutBar.jsp

    (none) 

    Layout Page color 

    ./JSPLayoutContainer/layoutedit.jsp

    (none) 

    Desktop body 

    ./JSPTableContainerProvider/tabtable.jsp

    tableBgColor

  2. Edit the appropriate file.

    In almost all case, make modifications to the bgcolor=value statement to change the color. In the case of the font color in the header and footer, change the color inside of the FONT tag for the specific link.

  3. In the directory where you make the change, run the following command:


    touch *.jsp

    (Or, if you know the parent JSP file, just run the touch command on that file.)

  4. Reload the Desktop.