Tested with JDeveloper: 18.104.22.168.0
Main purpose of this post is for me to have a reference project and proof of concept using an ADF Skin as Library.
Part 1: Skin Application
So first the ADF Skin project should be created. Since JDevR2 this process has been simplified by new ADF Skin wizard.
In the next screen just give your skin a name and extend from the fusionFx-simple-v2.desktop Oracle Skin. It is specially designed with extensibility in mind for cusom skins. Fortunataly the recommended skin is selected. (It is not with every ADF/Jdeveloper feature ;). So well done Oracle!
The following bunch of things is created on the fly
Now lets create a "green" skin with smallest amount of modifications. This is achieved by opening the CSS file and
go to the "Images" View. Just change some of the colors.
And afterwards click "Apply to Skin"
=> This will generate a lot of images according to your color schema.
In order to support versioning of skin I am adding the following to the trinidad-skins.xml
Now we are ready to bundle the custom skin as ADF library. There is nothing special here. Create the Deployment profile, keep defaults and deploy.
Next step is to test the provisioning of the ADF Skin through ADF Library through File System connection. To do that we create a filesystem connection in the resource pallete
The Skin shows up as expected
Part 2: Consume ADF Skin
a) Create an pure empty Fusion ADF Application by wizard.
b) Select the ViewController project
c) Select adflib-myskin.jarm Right Click and Click add to Project
The Message Pane should output something like
These ADF Library jar items are now in ViewController.jpr
These are in the project as a result of your ADF jar imports:
Resource Bundle Variable Resolver from .../TestADFSkin/MySkin/MySkin.jpr
d) Apply custom ADF Skin as default in Project Properties>ADF View
e) Create a simple JSF Page based on the threeColumnTemplate and take a look
At Design-Time there seem to be some problems.
At Runtime it looks as expected
Is it a Bug at Design Time?
Using just a QuickLayout everything is as expected also in design time
Download Sample Workspaces: http://www.box.com/s/h8mggth460ntujhg7o3r