Monday, February 8, 2016

How to create custom CSS file for ADF Web application

How to  create custom CSS  file for ADF Web Application

Here is the step by step process .. Before that create a view controller project in the ADF Web Application

1) create trinidad-skins.xml(If you don't find ) in this path (..\ViewController\public_html\WEB-INF\trinidad-skins.xml)
<?xml version="1.0" encoding="windows-1252" ?>
<skins xmlns="">


<?xml version="1.0" encoding="windows-1252"?>
<trinidad-config xmlns="">

2) CSS file is in the path
3) The below property can be set in the view controller project web.xml. This will check the automatic changes in your css file and reflect in the Adf UI after refresh.
   This should not be used in Production environment..    By Default this property is set to false.
    <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
Thats it !!! Its done.

Test it with the below steps

1)content in sample.css
    af|commandButton {
        color: red;
        font-weight: bold;
        font-size: 12px;
        text-decoration: none;
2)create a button in jspx page and run  .
    <af:commandButton text="Search" id="cb1"/>

No comments:

Post a Comment