Thanks, the server no more displays the FileNotFound but the skin still does not show up. :(

----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, July 26, 2006 11:12 AM
Subject: Re: RE skins with ADF-Faces


Hello,

The skin folder should not be placed within WEB-INF, but rather in the web
content root, that is the folder containing WEB-INF.


Regards,

Simon Lessard
Fujitsu Consulting





"Piyush Hari" <[EMAIL PROTECTED]>
2006-07-26 14:10
Please respond to adffaces-dev

       To:     <[email protected]>
       cc:
       Subject:        Re: RE skins with ADF-Faces


Thanks , but my faces-cofig.xml does contain these tags. I think this is
more of a file not found error. I place the skins/beach/beach.css within
Web-inf directory of my project . When i deploy, it does get included in
the
WEB-INF directory of my application but the server throws  a "file not
found
error".

SEVERE: Could not load style sheet: skins/purple/purpleSkin.css
java.io.FileNotFoundException: Unable to locate style sheet
"skins/purple/purple
Skin.css" in local styles directory
(C:\JDEVADF_MAIN.JM5_NT_060715.2210.3986\j2e
e\home\application-deployments\column\column\temp\adf\styles), or in
context
root
(C:\JDEVADF_MAIN.JM5_NT_060715.2210.3986\j2ee\home\applications\column\column\
), or on the class path.

My application name is column.(context root). Also, I am not sure why it
looks for the skins in "temp/adf/styles" instead of looking for it in root
?

----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, July 26, 2006 6:18 AM
Subject: RE skins with ADF-Faces


Can you verify that also in the faces-config.xml

The following is present
<application>

<default-render-kit-id>org.apache.myfaces.adf.core</default-render-kit-id>
 </application>

Also in the web.xml file, you should have something similar to this:
   <filter>
       <filter-name>adfFaces</filter-name>
<filter-class>org.apache.myfaces.adf.webapp.AdfFacesFilter</filter-class>
   </filter>
   <filter-mapping>
       <filter-name>adfFaces</filter-name>
       <servlet-name>faces</servlet-name>
   </filter-mapping>
   <servlet>
       <servlet-name>faces</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
   </servlet>
   <servlet>
       <servlet-name>resources</servlet-name>

<servlet-class>org.apache.myfaces.adf.webapp.ResourceServlet</servlet-class>
   </servlet>
   <servlet-mapping>
       <servlet-name>faces</servlet-name>
       <url-pattern>/faces/*</url-pattern>
   </servlet-mapping>
   <servlet-mapping>
       <servlet-name>resources</servlet-name>
       <url-pattern>/adf/*</url-pattern>
   </servlet-mapping>

I remembered having trouble too when wanting to add a skin for tests pages
I was doing, and as far as I remembered, that was something I did near the
end to correct the problem.

"Piyush Hari" <[EMAIL PROTECTED]> a écrit sur 2006-07-26 02:28:27 :

I want to use a custom skin for the adf components.

Based on adf-faces-demo, this is what I did:

1) copy the skin files to the WEB-INF dir of the project

WEB-INF/skins/beach
WEB-INF/skins/purple

2)create an adf-faces-skins.xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<skins xmlns="http://myfaces.apache.org/adf/view/faces/skin";>
    <skin>
        <id>
            purple.desktop
        </id>
        <family>
            purple
        </family>
        <render-kit-id>
            org.apache.myfaces.adf.desktop
        </render-kit-id>
        <style-sheet-name>
            skins/purple/purpleSkin.css
        </style-sheet-name>
        <bundle-name>
            org.apache.myfaces.adfdemo.resource.SkinBundle
        </bundle-name>
    </skin>
    <skin>
        <id>
            beach.desktop
        </id>
        <family>
            beach
        </family>
        <render-kit-id>
            org.apache.myfaces.adf.desktop
        </render-kit-id>
        <style-sheet-name>
            skins/beach/beach.css
        </style-sheet-name>
    </skin>
</skins>

3) create an adf-faces-config.xml with the following skin family tag

<skin-family>beach</skin-family>

When I run my app on desktop, it does not display my app in the beach
skin.
However, in the source it does refer to beach skin as
<link rel="stylesheet" charset="UTF-8" type="text/css"
href="/tests-column-context-root/adf/styles/cache/beach-desktop-
${version}-en-gecko.css">Any
pointers to the solution of this problem ? -Piyush




Reply via email to