



The following example demonstrates how to register a number of ADF skins that extends from a sample of the ADF skins described in Table 13-1. This file registers the ADF skins that you create, as described in Creating an ADF Skin File. For more information, see Packaging an ADF Skin into an ADF Library JAR. 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 example, write a URL in the following format: You specify the start of the URL using //. This differs to the context relative URL in that it allows you reference a resource located in another application on the same web server. For example, if the context relative root of a web application is:Ī server relative URL is resolved relative to the web server. You start a context relative root with /. This format of URL is resolved relative to the context root of your web application. For example, if the ADF skin's CSS file directory is WebApp/Skin/skin1/ and the specified URL is img/errorIcon.gif, the final URL is /WebApp/Skin/mySkin/img/errorIcon.gif A relative URL is based on the location of the ADF skin's CSS file. You can specify a relative URL if the URL does not start with / and no protocol is present. For example, a URL in the following format: You specify the complete URL to the resource. You can refer to a URL from an ADF skin's CSS file in a number of different formats. For example, an image that an application uses to render with an error message. An ADF skin's CSS file typically uses a URL to refer to a resource that is external to the file.
