This discussion is archived
2 Replies Latest reply: Nov 16, 2012 5:32 AM by user404 RSS

ADF Skin library path

user404 Pro
Currently Being Moderated
Hi,
I'm using Jdev 11.1.1.6.0 and the standalone SkinEditor.
I made a skin and deployed it as an ADF lib.
Then I added the .jar to my ViewController project.
But now I need to configure trinidad-config.xml file.
I'm following the Oracle docs (http://docs.oracle.com/cd/E25054_01/web.1111/b31973/af_skin.htm#CHDJEEGH - 20.2.3) and it tells me this:

If still not retrieved, the URL is created using the <ClassLoader> getResource in a style-sheet-name format similar to META-INF/purpleSkin/styles/myPurpleSkin.css. Once the URL is converted to this format, it can be searched for in JAR files that may contain the style sheet.

But I don't really now what to do.
Can anyone give me an example or provide some helpfull documentation (on how to point to my .css in my jar)?

Thanks in advance!
  • 1. Re: ADF Skin library path
    Arunkumar Ramamoorthy Guru
    Currently Being Moderated
    Hi,

    Have you tried importing the skin jar file to your app, create a new skin by extending the one you've packaged in the jar file and use it in your app?

    http://docs.oracle.com/cd/E21764_01/user.1111/e21420/adfsg_project.htm#BHAJHAEC

    Also check out this blog : https://blogs.oracle.com/jdevotnharvest/entry/how-to_share_skin_definition_files_across_applications

    -Arun
  • 2. Re: ADF Skin library path
    user404 Pro
    Currently Being Moderated
    Thanks for your reply.
    I can't extend a style class since in my JDev version, they took out the skineditor that's why I'm using the standalone one.
    The only problem I have is, how get the reference path to my .css which is located in my .jar?

    This is what I got :
    <id>testSkin.desktop</id>
     <family>testFamily</family>
      <extends>fusionFx-simple-v1.2.desktop</extends>
       <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
        <style-sheet-name>/lib/ADFSkinLib.jar!/META-INF/skins/SkinTest/SkinTest.css</style-sheet-name>
         <version>
          <name>v1</name>
            <default>true</default>
        </version>
        </skin>
    Note that my trinidad-skins.xml is located in WEB-INF and my libary in WEB-INF/lib (just for testing).

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points