Referring to URLs in an ADF Skins CSS File

11 Advanced Topics 11-1 11 Advanced Topics This chapter provides information to help you if you make changes in the source file of an ADF skin or in the configuration files that control the usage of ADF skins. The chapter also lists the ADF skins provided by Oracle ADF. This chapter includes the following sections: ■ Section 11.1, Referring to URLs in an ADF Skins CSS File ■ Section 11.2, ADF Skinning Framework and Supported Render Kits ■ Section 11.3, Configuration Files for an ADF Skin ■ Section 11.4, ADF Skins Provided by Oracle ADF

11.1 Referring to URLs in an ADF Skins CSS File

An ADF skin’s CSS file typically uses a URL to refer to a resource that is external to the file. For example, an image that an application uses to render with an error message. You can refer to a URL from an ADF skin’s CSS file in a number of different formats. The supported formats are: ■ Absolute You specify the complete URL to the resource. For example, a URL in the following format: http:www.mycompany.comWebAppSkinskin1imgerrorIcon.gif ■ Relative You can specify a relative URL if the URL does not start with and no protocol is present. A relative URL is based on the location of the ADF skin’s CSS file. For example, if the ADF skins CSS file directory is WebAppSkinskin1 and the specified URL is imgerrorIcon.gif, the final URL is WebAppSkinmySkinimgerrorIcon.gif ■ Context relative This format of URL is resolved relative to the context root of your web application. You start a context relative root with . For example, if the context relative root of a web application is: WebApp and the specified URL is: imgerrorIcon.gif the resulting URL is: 11-2 Skin Editor Users Guide for Oracle Application Development Framework WebAppimgerrorIcon.gif ■ Server relative A server relative URL is resolved relative to the web server. This differs to the context relative URL in that it allows you reference a resource located in another application on the same web server. You specify the start of the URL using . For example, write a URL in the following format: WebAppSkinmySkinimgerrorIcon.gif The format of URL that you use may be important if you create a Java Archive JAR file to package and distribute your ADF skin and its associated files. For more information, see Chapter 10.3, Packaging an ADF Skin into an ADF Library JAR.

11.2 ADF Skinning Framework and Supported Render Kits