Hi

Part 2:

If I try to access the resource directly, it just prints out the URI. If I 
comment out ClayViewHandlerCommand from chain-config, it still does it so I am 
at a loss as to what is going on here.

Hermod

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, December 02, 2005 9:24 AM
To: user@struts.apache.org
Subject: [Shale] Clay - Not serving .css and .png


Hi

I my continued persuit of Shale and Clay and have now started to apply my 
standard style (lquid) to the template application. What I discovered was that 
Clay will not serve .css files. I noticed in Geeta's ShaleNShark1 demo that the 
style sheet was named .html. So I renamed my stylesheet to .html and the 
style's where applied, with 1 exception: my .png files. They did not appear.

I noticed that in the log I got (when named .html):
02.des.2005 09:04:58 org.apache.shale.faces.ShaleViewHandler setupViewController
WARNING: No ViewController for viewId /theme/styles.xml found under name 
theme$styles
02.des.2005 09:04:58 org.apache.shale.clay.faces.ClayViewHandler renderView
INFO: Clay template renderView for /theme/styles.xml

I have in my chain-config file:

<command 
className="org.apache.shale.clay.config.beans.ConfigDefinitionsWatchdogFilter"
                                
includes="\S*\.faces,\S*\.html,/index\.jsp,\S*\.xml" />

<command className="org.apache.shale.application.ContextRelativePathFilter"
                                
includes="\S*\.xml,\S*\.faces,\S*\.html,\S*\.gif,\S*\.css,\S*\.png,\S*\.jpg,/index\.jsp"
                                excludes="\S*\.jsp,\S*\.jspf" />

So it should allow access to it. I have not had the time to investigate into 
why this is happening, but since Geeta obviously hit this I thought maybe 
someone had an answer.

Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to