To register a custom look and feel with ADF UIX:
uix-config.xml
), use a
<look-and-feel-config>
configuration element in the
<application-configuration>
section to specify a single
custom look and feel defined by a look and feel configuration file. Be
sure to include the path to the look and feel configuration file.
The path is relative to the servlet context root. For example, if
the look and feel configuration file is defined in
mycompany-laf.xml
under the WEB-INF directory, then the
location would be WEB-INF/mycompany-laf.xml
.
If the look and feel configuration file is packaged in a JAR file on
the web application's class path, then the location would be, for
example, org/example/laf/custom/mycompany-laf.xml
(where the mycompany-laf.xml
configuration file is
installed in the org.example.laf.custom
package).
For more details about the elements used in configuration, see " UIX Configuration" of the UIX Element Reference. For more information about configuration, refer to the ADF UIX Developer's Guide .
Note: If you do not specify the preferred look and feel for an application, UIX uses the last custom look and feel registered in the UIX configuration file as the default look and feel.
Example in XML
<?xml version="1.0" encoding="windows-1252"?>
<configurations xmlns="http://xmlns.oracle.com/uix/config">
<application-configuration>
...
<!-- Register one or more custom look and feels -->
<look-and-feels>
<look-and-feel-config>WEB-INF/mycompany-laf.xml</look-and-feel-config>
<look-and-feel-config>WEB-INF/yourcompany-laf.xml</look-and-feel-config>
<look-and-feel-config>WEB-INF/abcxyz-laf.xml</look-and-feel-config>
...
</look-and-feels>
</application-configuration>
<default-configuration></default-configuration>
<configuration></configuration>
</configurations>
About Look and Feel Customization
About Packaging a Custom Look and Feel
Creating Custom Look and Feels
Working with ADF UIX Pages
Working with Web Application Design Tools
Copyright © 1997, 2004, Oracle. All rights reserved.