You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by he...@dnbnor.no on 2005/12/02 09:23:58 UTC
[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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [Shale] Clay - Not serving .css and .png
Posted by gr...@intellicare.com.
<he...@dnbnor.no> wrote on 12/02/2005 03:23:58 AM:
> 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.
Hermod, just an fyi, but right now I do have a Shale/Tiles web app working
against a style sheet with a .css name. Like you I too noticed that having
.css in filter (in command-config.xml) didn't do the trick. Things started
working when I downloaded a later version of Shale and/or Tiles. Having
other issues to deal with, I didn't question it any further..:)
Reagrds,
Geeta