Sun Java System Portal Server 7 Community Sample Guide

ProcedureTo Use Sun Java Web User Interface Theme in a Page

Step

    In the JSP files that generate the <head> section of the HTML (or the header.jsp file), you can designate a Sun Java Web User Interface Components theme to be used for the entire page. For example:


    <pui:setupTheme themeName="defaulttheme" .../>

    To use Sun Java Web User Interface Components theme in a page, the porletSetupTags.tld tag library descriptor file must be included; otherwise, the <pui:setupTheme...> will fail. This file must be located where the JSP files can access it. For example, in the community sample, it is located at PortalServer-DataDir/portals/portal-ID/desktop/community_sample/tld directory.