I have the same problem but I found an easy workaround. Change the url
pattern of the shale filter to *.html and everything will work fine.

On 12/2/05, Gary VanMatre <[EMAIL PROTECTED]> wrote:
> > 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.
> >
>
> I guess that I don't understand what you are trying.  If you want to include 
> a file in the template, take a look at the /rolodex.viewsource.html page of 
> the rolodex example.
>
> <span jsfid="clayImport" url="/mystyle.css" />
>
> Anything that has an HTML suffix will be dispatched thru the faces servlet if 
> you are using full html views.
>
> The "ConfigDefinitionsWatchdogFilter" is used to check the last modified date 
> of the Clay configuration files/templates and reload them.
>
> The "ContextRelativePathFilter" you might not need.  This command is designed 
> to reject direct access to jsp's.  I would remove it if you are not using 
> jsp's.
>
> > Hermod
> >
>
> Gary
>
> > -----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:
> >
> > > className="org.apache.shale.clay.config.beans.ConfigDefinitionsWatchdogFilter"
> >
> > includes="\S*\.faces,\S*\.html,/index\.jsp,\S*\.xml" />
> >
> > >
> > includes="\S*\.xml,\S*\.faces,\S*\.html,\S*\.gif,\S*\.css,\S*\.png,\S*\.jpg,/ind
> > ex\.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]
> >
>


--
Alexandre Poitras
Québec, Canada

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

Reply via email to