Databases Reference
In-Depth Information
5.
Now we will have to create the CSS file referenced in our skin file.
6.
Follow steps 1 through 3 and provide the
File Name
value as
empSkin.css
; the
locaion of the ile has to be
ViewController/public_html/skins/empSkin/
.
7.
Click on the
Ok
buton when inished.
What just happened?
To have your own skins, you will have to create a file named
trinidad-skins.xml
in the
same folder as that of the
trinidad-config.xml
file. A typical
trinidad-skins.xml
ile will have atributes, such as ID, family, render kit, and the stylesheet locaion for the
custom skin ile. In the previous secion, we have created the
trinidad-skins.xml
ile
with the following elements:
<skins>
: This is the root that will contain one or more skin deiniions.
<skin>
: This element is used to idenify individual skins.
<id>
: This is the unique ID given to the skin reference that you are creaing.
Usually, the ID is the skin family value suffixed with
.desktop
.
<family>
: This is to conigure your skin for a paricular family of skins. Each skin
must belong to a family that is referenced from the
trinidad-config.xml
file.
<extends>
: This element is used to extend the skin by its family name.
<render-kit>
: This is used to define which render kit has to be used for the skin.
<style-sheet-name>
: This is used to refer to the locaion of the skin ile. In our
case, we have created our skin stylesheet at the locaion speciied in the ile.
<bundle-name>
: This element will define the resource bundle that has to be
used for the skin. The bundle name can refer to the fully qualified name of the
Java resource bundle.
<version>
: This opion is used to version the skin that is added to the ile.
An applicaion can have diferent versions of the same skin.
The
trinidad-config.xml
file is located in your
ViewController/public_html/WEB-
INF
folder. The ile will have a reference to the skin that was used in the web applicaion.
The
<skin-family>
tag will refer to the skin name and the
<skin-version>
tag will have
a reference to the version of the skin that has to be used for the applicaion. The ile in our
EmpDirectoryApplication
applicaion should have entries such as the following:
<?xml version="1.0" encoding="windows-1252"?>
<trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
<skin-family>empSkin</skin-family>
Search WWH ::
Custom Search