To Create a JAR File Containing Customized Skins

To create a JAR file containing customized skins:

  1. Create a directory structure similar to the following example:
    C:\temp\META-INF\adf\oracle\skin\images
         META-INF\skins\custom.css
         META-INF\trinidad-skins.xml
    

    In this example, you can change the word custom to the name of your own customized skin.

  2. Make sure the content of trinidad-skins.xml file is as follows:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <skins xmlns="http://myfaces.apache.org/trinidad/skin">
       <skin>
         <id>custom.desktop</id>
         <family>custom</family>
         <extends>custom.desktop</extends>
         <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
         <style-sheet-name>skins/custom.css</style-sheet-name>
       </skin>
    </skins>
    
  3. Create the .JAR file by issuing the following command from the c:\temp directory:
    jar -cvf customSkin.jar META-INF/
    
  4. Copy this JAR file to the directory /scratch/username/sharedLib.

Note:

Refer to the images in your css file this way:

../adf/oracle/skin/images/example.gif (with the two trailing dots).

This allows the search for the META-INF root to start one directory above the META-INF/skin directory in which the .css file is located.

For information about deploying JAR files as part of a shared library, see Managing and Monitoring Processes with Oracle Business Process Management.